From cbfbc225fa59906046ff60da1e2476a87b122534 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 8 Mar 2015 21:33:01 +0100 Subject: [PATCH] To prevent loops, do not trigger touch on touch (just on real change). --- app/models/observer/ticket/ref_object_touch.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/observer/ticket/ref_object_touch.rb b/app/models/observer/ticket/ref_object_touch.rb index 9f0861882..81026ef94 100644 --- a/app/models/observer/ticket/ref_object_touch.rb +++ b/app/models/observer/ticket/ref_object_touch.rb @@ -9,9 +9,6 @@ class Observer::Ticket::RefObjectTouch < ActiveRecord::Observer def after_update(record) ref_object_touch(record) end - def after_touch(record) - ref_object_touch(record) - end def after_destroy(record) ref_object_touch(record) end