Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
511 B
Raw Blame
module ReleaseHighlightsHelper
  # Tag of the deployed release whose highlight the user has not seen yet,
  # or nil when the popup should not render. Purely local state (no GitHub
  # call - the notes themselves are fetched lazily by the Stimulus
  # controller), so it is safe to run on every page render.
  def pending_release_tag
    return @pending_release_tag if defined?(@pending_release_tag)

    @pending_release_tag = ReleaseHighlights.pending_tag_for(Current.user)
    @pending_release_tag
  end
end