aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/dirty_test.rb
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/cases/dirty_test.rb
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/cases/dirty_test.rb')
-rw-r--r--activerecord/test/cases/dirty_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb
index 55ee066cda..b9961a4420 100644
--- a/activerecord/test/cases/dirty_test.rb
+++ b/activerecord/test/cases/dirty_test.rb
@@ -517,7 +517,7 @@ class DirtyTest < ActiveRecord::TestCase
assert !pirate.previous_changes.key?('created_on')
pirate = Pirate.find_by_catchphrase("Thar She Blows!")
- pirate.update_attributes(:catchphrase => "Ahoy!")
+ pirate.update(catchphrase: "Ahoy!")
assert_equal 2, pirate.previous_changes.size
assert_equal ["Thar She Blows!", "Ahoy!"], pirate.previous_changes['catchphrase']