mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
58edaaad0b
commit
3b4450bb80
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue