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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
298 B
Ruby
Raw Permalink 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