diff options
author | Dmitriy Kiriyenko <dmitriy.kiriyenko@gmail.com> | 2011-06-06 10:30:05 +0300 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-07 18:42:40 +0100 |
commit | 7c1f73c843310a3dd0cee179f56ffdc7c859eaa0 (patch) | |
tree | eac2cb33112b2a5f02172b138481dc3817f7e3cd /activerecord/lib | |
parent | 050d6ef060464427ae4ea559224c7040da268d5b (diff) | |
download | rails-7c1f73c843310a3dd0cee179f56ffdc7c859eaa0.tar.gz rails-7c1f73c843310a3dd0cee179f56ffdc7c859eaa0.tar.bz2 rails-7c1f73c843310a3dd0cee179f56ffdc7c859eaa0.zip |
Do not use default_scope in ActiveRecord::Persistence#touch.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 4ec0431b8c..367a1be4d9 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -279,7 +279,7 @@ module ActiveRecord @changed_attributes.except!(*changes.keys) primary_key = self.class.primary_key - self.class.update_all(changes, { primary_key => self[primary_key] }) == 1 + self.class.unscoped.update_all(changes, { primary_key => self[primary_key] }) == 1 end end |