debian-mirror-gitlab/app/models/hooks/service_hook.rb
2022-03-02 08:16:31 +05:30

16 lines
353 B
Ruby

# frozen_string_literal: true
class ServiceHook < WebHook
include Presentable
extend ::Gitlab::Utils::Override
belongs_to :integration, foreign_key: :service_id
validates :integration, presence: true
def execute(data, hook_name = 'service_hook')
super(data, hook_name)
end
override :parent
delegate :parent, to: :integration
end