mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
just use the list of column names to generate attribute methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user