From 3b4450bb8043eca6ca0d423263e598c70c50f440 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Wed, 27 Dec 2006 20:41:55 +0000 Subject: Docs fix for columns_hash [bradediger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5797 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/base.rb') 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 -- cgit v1.2.3