aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAmparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com>2013-01-02 11:46:58 -0500
committerAmparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com>2013-01-03 11:51:21 -0500
commit1f3a1fedf951dbc4b72d178e2a649c4afd2f1566 (patch)
tree0bf671d26800e9e95128bb71672e6c52c248a488 /activerecord/test/models
parent08db381d15ce37c54bd0f23a6a63eaeda1c1d6f3 (diff)
downloadrails-1f3a1fedf951dbc4b72d178e2a649c4afd2f1566.tar.gz
rails-1f3a1fedf951dbc4b72d178e2a649c4afd2f1566.tar.bz2
rails-1f3a1fedf951dbc4b72d178e2a649c4afd2f1566.zip
Rename update_attributes method to update, keep update_attributes as an alias
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/reference.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/reference.rb b/activerecord/test/models/reference.rb
index 1636c118a2..c2f9068f57 100644
--- a/activerecord/test/models/reference.rb
+++ b/activerecord/test/models/reference.rb
@@ -11,7 +11,7 @@ class Reference < ActiveRecord::Base
def make_comments
if self.class.make_comments
- person.update_attributes :comments => "Reference destroyed"
+ person.update comments: "Reference destroyed"
end
end
end