just use the list of column names to generate attribute methods

This commit is contained in:
Aaron Patterson
2011-02-18 10:47:19 -08:00
parent 1644663ba7
commit 2e748feb80

View File

@@ -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