system_hook_observer.rb 268 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 class SystemHookObserver < BaseObserver observe :user, :project, :users_project def after_create(model) SystemHooksService.execute_hooks_for(model, :create) end def after_destroy(model) SystemHooksService.execute_hooks_for(model, :destroy) end end