mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
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:
@@ -763,7 +763,7 @@ module ActiveRecord #:nodoc:
|
||||
@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
|
||||
|
||||
Reference in New Issue
Block a user