diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-05-13 23:48:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 23:48:36 +0900 |
commit | 3b2ba908bad6962be8b1b0c368a97721dc864eb4 (patch) | |
tree | ed378d749fa4a075f5e380b1b05a82ffe4697fb8 /activerecord/lib/active_record/touch_later.rb | |
parent | 9854efd5ac6a05555cc73b21c98c37252eaef0a6 (diff) | |
parent | dcb825902d79d0f6baba956f7c6ec5767611353e (diff) | |
download | rails-3b2ba908bad6962be8b1b0c368a97721dc864eb4.tar.gz rails-3b2ba908bad6962be8b1b0c368a97721dc864eb4.tar.bz2 rails-3b2ba908bad6962be8b1b0c368a97721dc864eb4.zip |
Merge pull request #36271 from kamipo/dont_track_implicit_touch_mutation
Don't track implicit `touch` mutation
Diffstat (limited to 'activerecord/lib/active_record/touch_later.rb')
-rw-r--r-- | activerecord/lib/active_record/touch_later.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/touch_later.rb b/activerecord/lib/active_record/touch_later.rb index 6872b7844e..bc63c8d987 100644 --- a/activerecord/lib/active_record/touch_later.rb +++ b/activerecord/lib/active_record/touch_later.rb @@ -44,6 +44,7 @@ module ActiveRecord def touch_deferred_attributes if has_defer_touch_attrs? && persisted? + @_skip_dirty_tracking = true touch(*@_defer_touch_attrs, time: @_touch_time) @_defer_touch_attrs, @_touch_time = nil, nil end |