debian-mirror-gitlab/app/presenters/ci/freeze_period_presenter.rb
2023-03-05 14:24:40 +05:30

13 lines
298 B
Ruby

# frozen_string_literal: true
module Ci
class FreezePeriodPresenter < Gitlab::View::Presenter::Delegated
presents ::Ci::FreezePeriod, as: :freeze_period
def start_time
return freeze_period.time_start if freeze_period.active?
freeze_period.next_time_start
end
end
end