Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

just use the list of column names to generate attribute methods

  • Loading branch information...
commit 2e748feb801e87afbc7fad45161234ddb60fcecd 1 parent 1644663
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/attribute_methods.rb
View
2  activerecord/lib/active_record/attribute_methods.rb
@@ -10,7 +10,7 @@ module ClassMethods
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.