debian-mirror-gitlab/app/models/concerns/web_hooks/unstoppable.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
399 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# 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