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

unstoppable.rb « web_hooks « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 26284fe3c36138b229ac8f76279d519e1a228dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

module WebHooks
  module Unstoppable
    extend ActiveSupport::Concern

    included do
      scope :executable, -> { all }

      scope :disabled, -> { none }
    end

    def executable?
      true
    end

    def temporarily_disabled?
      false
    end

    def permanently_disabled?
      false
    end

    def alert_status
      :executable
    end
  end
end