debian-mirror-gitlab/app/models/hooks/service_hook.rb
2018-11-20 20:47:30 +05:30

10 lines
208 B
Ruby

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