summaryrefslogtreecommitdiff
path: root/app/models/hooks/service_hook.rb
blob: 1a466b333a55598bf62c4649af9148dbdd9caa46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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