gitlab-org--gitlab-foss/app/models/hooks/service_hook.rb
2017-07-20 15:12:06 +00:00

8 lines
177 B
Ruby

class ServiceHook < WebHook
belongs_to :service
validates :service, presence: true
def execute(data)
WebHookService.new(self, data, 'service_hook').execute
end
end