gitlab-org--gitlab-foss/app/helpers/whats_new_helper.rb

20 lines
421 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module WhatsNewHelper
def whats_new_most_recent_release_items_count
ReleaseHighlight.most_recent_item_count
end
def whats_new_storage_key
most_recent_version = ReleaseHighlight.versions&.first
return unless most_recent_version
['display-whats-new-notification', most_recent_version].join('-')
end
def whats_new_versions
ReleaseHighlight.versions
end
end