diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-05-12 00:29:16 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-05-12 00:35:42 +0100 |
commit | d2212c1601dcd67e72e9d52f98347d3285fd7134 (patch) | |
tree | 3bcb91aa1adc19d486e4a54d5bec9bd8433bafc1 /activerecord | |
parent | 00640de861797b258d2dd955b861bcb021d4a3e1 (diff) | |
download | rails-d2212c1601dcd67e72e9d52f98347d3285fd7134.tar.gz rails-d2212c1601dcd67e72e9d52f98347d3285fd7134.tar.bz2 rails-d2212c1601dcd67e72e9d52f98347d3285fd7134.zip |
Remove AR::Base#attributes argument. [#52 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |