Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove AR::Base#attributes argument. [#52 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit d2212c1601dcd67e72e9d52f98347d3285fd7134 1 parent 00640de
Frederick Cheung fcheung authored lifo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/base.rb
2  activerecord/lib/active_record/base.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.