debian-mirror-gitlab/app/models/hooks/service_hook.rb
2017-09-10 17:25:29 +05:30

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