gitlab-org--gitlab-foss/app/models/hooks/service_hook.rb

9 lines
177 B
Ruby
Raw Normal View History

2012-11-19 13:14:05 -05:00
class ServiceHook < WebHook
belongs_to :service
2017-07-20 11:12:06 -04:00
validates :service, presence: true
def execute(data)
WebHookService.new(self, data, 'service_hook').execute
end
2012-11-19 13:14:05 -05:00
end