gitlabhq/app/observers/system_hook_observer.rb
2013-03-26 18:11:38 +02:00

12 lines
268 B
Ruby

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