Files
discourse/app/models/admin_dashboard_index_data.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
339 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2019-04-01 12:39:49 +02: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