Skip to content

Commit d2212c1

Browse files
fcheunglifo
authored andcommitted
Remove AR::Base#attributes argument. [rails#52 state:resolved]
Signed-off-by: Pratik Naik <[email protected]>
1 parent 00640de commit d2212c1

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/active_record

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ def attributes=(new_attributes, guard_protected_attributes = true)
23422342

23432343

23442344
# Returns a hash of all the attributes with their names as keys and the values of the attributes as values.
2345-
def attributes(options = nil)
2345+
def attributes
23462346
self.attribute_names.inject({}) do |attrs, name|
23472347
attrs[name] = read_attribute(name)
23482348
attrs

0 commit comments

Comments
 (0)