debian-mirror-gitlab/app/presenters/ci/freeze_period_presenter.rb
2023-03-04 22:38:38 +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