diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 7999eec55d281..392d187092b19 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2342,7 +2342,7 @@ def attributes=(new_attributes, guard_protected_attributes = true) # Returns a hash of all the attributes with their names as keys and the values of the attributes as values. - def attributes(options = nil) + def attributes self.attribute_names.inject({}) do |attrs, name| attrs[name] = read_attribute(name) attrs