gitlabhq/app/observers/system_hook_observer.rb

12 lines
268 B
Ruby
Raw Normal View History

class SystemHookObserver < BaseObserver
observe :user, :project, :users_project
2013-02-20 10:15:56 +01:00
def after_create(model)
SystemHooksService.execute_hooks_for(model, :create)
end
def after_destroy(model)
SystemHooksService.execute_hooks_for(model, :destroy)
end
end