Skip to content

Commit

Permalink
Remove AR::Base#attributes argument. [rails#52 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
fcheung authored and lifo committed May 11, 2008
1 parent 00640de commit d2212c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit d2212c1

Please sign in to comment.