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

web_hook_log.rb « hooks « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2738b229d847b880f628c417dd46dda44567b353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class WebHookLog < ActiveRecord::Base
  belongs_to :web_hook

  serialize :request_headers, Hash
  serialize :request_data, Hash
  serialize :response_headers, Hash

  validates :web_hook, presence: true

  def success?
    response_status =~ /^2/
  end
end