debian-mirror-gitlab/app/presenters/ci/runner_presenter.rb
2021-11-18 22:05:49 +05:30

15 lines
322 B
Ruby

# frozen_string_literal: true
module Ci
class RunnerPresenter < Gitlab::View::Presenter::Delegated
presents ::Ci::Runner, as: :runner
delegator_override :locked?
def locked?
read_attribute(:locked) && project_type?
end
delegator_override :locked
alias_method :locked, :locked?
end
end