1 2 3 4 5 6 7 8 9
module Issuable class DestroyService < IssuableBaseService def execute(issuable) if issuable.destroy issuable.update_project_counter_caches end end end end