From d2212c1601dcd67e72e9d52f98347d3285fd7134 Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Mon, 12 May 2008 00:29:16 +0100 Subject: 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(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 7999eec55d..392d187092 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -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 -- cgit v1.2.3