From d2212c1601dcd67e72e9d52f98347d3285fd7134 Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Mon, 12 May 2008 00:29:16 +0100 Subject: [PATCH] Remove AR::Base#attributes argument. [#52 state:resolved] Signed-off-by: Pratik Naik --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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