aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-06 15:52:16 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-06 15:52:16 -0800
commit3e0ecde2082f3b0ca07e7b28cdd4f9294a223442 (patch)
tree2c7b4bc99816dfd178c523f75d19081fea5a6551 /activerecord/lib/active_record/attribute_methods.rb
parent5dec3dd59c9f4b5c881860b0f629c8d6b3706f90 (diff)
downloadrails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.tar.gz
rails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.tar.bz2
rails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.zip
adding a comment for myself
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods.rb')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index a1e34a3aa1..889c80386f 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -194,6 +194,7 @@ module ActiveRecord
# Returns the column object for the named attribute.
def column_for_attribute(name)
+ # FIXME: should this return a null object for columns that don't exist?
self.class.columns_hash[name.to_s]
end