Welcome to mirror list, hosted at ThFree Co, Russian Federation.

service_hook.rb « hooks « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1f1ab79b6ad20cf94a264ce2f9bec6a545a7dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class ServiceHook < WebHook
  include Presentable

  extend ::Gitlab::Utils::Override

  self.allow_legacy_sti_class = true

  belongs_to :integration
  validates :integration, presence: true

  def execute(data, hook_name = 'service_hook')
    super(data, hook_name)
  end

  override :parent
  delegate :parent, to: :integration
end