To prevent loops, do not trigger touch on touch (just on real change).

This commit is contained in:
Martin Edenhofer 2015-03-08 21:33:01 +01:00
parent 969cadc6a4
commit cbfbc225fa

View file

@ -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