aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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