mirror of
https://github.com/github/rails.git
synced 2026-01-30 08:48:06 -05:00
Remove AR::Base#attributes argument. [#52 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
committed by
Pratik Naik
parent
00640de861
commit
d2212c1601
@@ -2342,7 +2342,7 @@ module ActiveRecord #:nodoc:
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user