diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-12-27 20:41:55 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-12-27 20:41:55 +0000 |
commit | 3b4450bb8043eca6ca0d423263e598c70c50f440 (patch) | |
tree | d767f5358deec622771c48f88f3da7011d5ef840 /activerecord | |
parent | 58edaaad0bc32a4b190329dcc8fb0e3bb1869c46 (diff) | |
download | rails-3b4450bb8043eca6ca0d423263e598c70c50f440.tar.gz rails-3b4450bb8043eca6ca0d423263e598c70c50f440.tar.bz2 rails-3b4450bb8043eca6ca0d423263e598c70c50f440.zip |
Docs fix for columns_hash [bradediger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e4218a1a1c..f5e6fb57e3 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -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 |