debian-mirror-gitlab/app/presenters/ci/freeze_period_presenter.rb

14 lines
298 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# 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