2021-08-10 11:10:03 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class RunnerPresenter < Gitlab::View::Presenter::Delegated
|
2021-09-21 05:12:21 -04:00
|
|
|
presents ::Ci::Runner, as: :runner
|
2021-08-10 11:10:03 -04:00
|
|
|
|
2021-09-21 05:12:21 -04:00
|
|
|
delegator_override :locked?
|
2021-08-10 11:10:03 -04:00
|
|
|
def locked?
|
|
|
|
read_attribute(:locked) && project_type?
|
|
|
|
end
|
2021-09-21 05:12:21 -04:00
|
|
|
|
|
|
|
delegator_override :locked
|
2021-08-10 11:10:03 -04:00
|
|
|
alias_method :locked, :locked?
|
|
|
|
end
|
|
|
|
end
|