Sha256: 30915de5cc49c48dc02b0844525488de7fd0fce220d47492313eba8531b147a2

Contents?: true

Size: 458 Bytes

Versions: 3

Compression:

Stored size: 458 Bytes

Contents

module FooterHelper
  def app_version_footer
    Rails.cache.fetch(['app_version_footer', AppVersion.commit_id], expires_in: 1.day) do
      ( "#{AppVersion.app_name}, " +
        link_to("Version #{AppVersion.version}", AppVersion.releases_url) +
        ", " +
        link_to("Commit #{AppVersion.short_commit_id}", AppVersion.github_commit_url) + 
        " | " +
        link_to("Changelog", AppVersion.changelog_url)
      ).html_safe
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 app/helpers/footer_helper.rb
your_platform-1.0.0 app/helpers/footer_helper.rb
your_platform-0.0.2 app/helpers/footer_helper.rb