debian-mirror-gitlab/app/models/hooks/service_hook.rb
2021-06-08 01:23:25 +05:30

13 lines
261 B
Ruby

# frozen_string_literal: true
class ServiceHook < WebHook
include Presentable
belongs_to :integration, foreign_key: :service_id
validates :integration, presence: true
def execute(data, hook_name = 'service_hook')
super(data, hook_name)
end
end