diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-18 10:47:19 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-18 10:47:19 -0800 |
commit | 2e748feb801e87afbc7fad45161234ddb60fcecd (patch) | |
tree | 3cc72eb8c429535ad5f8e73e727c22038d338ded | |
parent | 1644663ba7f678d178deab2bf1629dc05626f85b (diff) | |
download | rails-2e748feb801e87afbc7fad45161234ddb60fcecd.tar.gz rails-2e748feb801e87afbc7fad45161234ddb60fcecd.tar.bz2 rails-2e748feb801e87afbc7fad45161234ddb60fcecd.zip |
just use the list of column names to generate attribute methods
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 4f4a0a5fee..2c5db51f7f 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -10,7 +10,7 @@ module ActiveRecord # Generates all the attribute related methods for columns in the database # accessors, mutators and query methods. def define_attribute_methods - super(columns_hash.keys) + super(column_names) end # Checks whether the method is defined in the model or any of its subclasses |