diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-18 01:27:57 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-18 01:27:57 +0000 |
commit | 3bef4c246a3d2e1a53b874c09b0a4b22cfbae067 (patch) | |
tree | ebe369baca779bbc8f421d3a10c695a45564919a | |
parent | bb9975fbc746b7febe634aba447d2bca7b713740 (diff) | |
download | rails-3bef4c246a3d2e1a53b874c09b0a4b22cfbae067.tar.gz rails-3bef4c246a3d2e1a53b874c09b0a4b22cfbae067.tar.bz2 rails-3bef4c246a3d2e1a53b874c09b0a4b22cfbae067.zip |
Made Base#update_attributes actually work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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 81f9f84d21..c10644ca3e 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -794,7 +794,7 @@ module ActiveRecord #:nodoc: # Updates all the attributes in from the passed hash and saves the record. def update_attributes(attributes) - attributes = attributes + self.attributes = attributes return save end |