summaryrefslogtreecommitdiff
path: root/app/helpers/whats_new_helper.rb
blob: f267ede3153da9aae07419fd2ff0e6ce37747c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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.most_recent_version

    return unless most_recent_version

    ['display-whats-new-notification', most_recent_version].join('-')
  end
end