aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-03-27 18:52:21 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-03-27 18:55:30 -0300
commit0e1fed537a7699a7ded02f77b71d222d7207c5ad (patch)
treea6d0acc8b1198593c3ca830755cbb643140de7d2 /activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
parenteea6a65488e3f590d4d9cd922f54febb151799ad (diff)
downloadrails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.tar.gz
rails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.tar.bz2
rails-0e1fed537a7699a7ded02f77b71d222d7207c5ad.zip
Revert "Removed #update_attribute method. New #update_column method."
This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
index f4d14853d3..73d02c9676 100644
--- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -604,7 +604,7 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
project = SpecialProject.create("name" => "Special Project")
assert developer.save
developer.projects << project
- developer.update_column("name", "Bruza")
+ developer.update_attribute("name", "Bruza")
assert_equal 1, Developer.connection.select_value(<<-end_sql).to_i
SELECT count(*) FROM developers_projects
WHERE project_id = #{project.id}