aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-18 01:27:57 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-18 01:27:57 +0000
commit3bef4c246a3d2e1a53b874c09b0a4b22cfbae067 (patch)
treeebe369baca779bbc8f421d3a10c695a45564919a /activerecord/lib/active_record/base.rb
parentbb9975fbc746b7febe634aba447d2bca7b713740 (diff)
downloadrails-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
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
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