diff --git a/lib/active_touch/touch_job.rb b/lib/active_touch/touch_job.rb index cdbdc09..d896364 100644 --- a/lib/active_touch/touch_job.rb +++ b/lib/active_touch/touch_job.rb @@ -13,8 +13,10 @@ def perform(record, association, after_touch) associated.send(after_touch) unless after_touch.blank? elsif !associated.nil? - associated.update_all(updated_at: record.updated_at) - associated.each { |associate| associate.send(after_touch) } unless after_touch.blank? + associated.each do |associate| + associate.update_columns(updated_at: record.updated_at) + associate.send(after_touch) unless after_touch.blank? + end end end diff --git a/lib/active_touch/version.rb b/lib/active_touch/version.rb index 4f13af6..ddeca67 100644 --- a/lib/active_touch/version.rb +++ b/lib/active_touch/version.rb @@ -1,3 +1,3 @@ module ActiveTouch - VERSION = '1.4.0' + VERSION = '1.4.1' end