Browse files

Apply doc fix to RC, closes #6522

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 155dcff commit ce8e54e2366fb129dd41866b3053d2865b8a9484 @NZKoz NZKoz committed Dec 27, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -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

0 comments on commit ce8e54e

Please sign in to comment.