codeRIT/hackathon_manager

View on GitHub
app/helpers/manage/dashboard_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Manage
  module DashboardHelper
    def cache_key_for_questionnaires
      count          = Questionnaire.count
      max_updated_at = Questionnaire.maximum(:updated_at).try(:utc).try(:to_s, :number)
      "questionnaires/all-#{count}-#{max_updated_at}"
    end
  end
end