2021-10-27 15:23:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class RunnerPresenter < Gitlab::View::Presenter::Delegated
|
2021-11-18 22:05:49 +05:30
|
|
|
presents ::Ci::Runner, as: :runner
|
2021-10-27 15:23:28 +05:30
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
delegator_override :locked?
|
2021-10-27 15:23:28 +05:30
|
|
|
def locked?
|
|
|
|
read_attribute(:locked) && project_type?
|
|
|
|
end
|
2021-11-18 22:05:49 +05:30
|
|
|
|
|
|
|
delegator_override :locked
|
2021-10-27 15:23:28 +05:30
|
|
|
alias_method :locked, :locked?
|
|
|
|
end
|
|
|
|
end
|