Docs fix for columns_hash [bradediger]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski 2006-12-27 20:41:55 +00:00
parent 58edaaad0b
commit 3b4450bb80

@ -763,7 +763,7 @@ def columns
@columns
end
# Returns an array of column objects for the table associated with this class.
# Returns a hash of column objects for the table associated with this class.
def columns_hash
@columns_hash ||= columns.inject({}) { |hash, column| hash[column.name] = column; hash }
end