From 3bef4c246a3d2e1a53b874c09b0a4b22cfbae067 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 18 Dec 2004 01:27:57 +0000 Subject: Made Base#update_attributes actually work git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/base.rb') 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 -- cgit v1.2.3