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