diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 20:20:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 20:20:26 -0300 |
commit | 2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a (patch) | |
tree | 08bd5ed78f12c3aecac9295889874cb9b0956294 /activerecord/lib/active_record/associations/has_one_association.rb | |
parent | da84ccb6f04080d0f18f9bce35f773f193b1770b (diff) | |
download | rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.gz rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.bz2 rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.zip |
Deprecate update_column in favor of update_columns.
Closes #1190
Diffstat (limited to 'activerecord/lib/active_record/associations/has_one_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/has_one_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_one_association.rb b/activerecord/lib/active_record/associations/has_one_association.rb index f0d1120c68..7086dfa34c 100644 --- a/activerecord/lib/active_record/associations/has_one_association.rb +++ b/activerecord/lib/active_record/associations/has_one_association.rb @@ -36,7 +36,7 @@ module ActiveRecord when :destroy target.destroy when :nullify - target.update_column(reflection.foreign_key, nil) + target.update_columns(reflection.foreign_key => nil) end end end |