2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-04-01 06:39:49 -04:00
|
|
|
class AdminDashboardIndexData < AdminDashboardData
|
2018-07-19 14:33:11 -04:00
|
|
|
def get_json
|
|
|
|
{ updated_at: Time.zone.now.as_json }
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.stats_cache_key
|
2018-07-31 17:35:13 -04:00
|
|
|
"index-dashboard-data-#{Report::SCHEMA_VERSION}"
|
2018-07-19 14:33:11 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# TODO: problems should be loaded from this model
|
|
|
|
# and not from a separate model/route
|
|
|
|
end
|