gitlab-org--gitlab-foss/app/controllers/admin/cohorts_controller.rb
2017-04-14 15:20:55 +02:00

11 lines
334 B
Ruby

class Admin::CohortsController < Admin::ApplicationController
def index
if current_application_settings.usage_ping_enabled
cohorts_results = Rails.cache.fetch('cohorts', expires_in: 1.day) do
CohortsService.new.execute
end
@cohorts = CohortsSerializer.new.represent(cohorts_results)
end
end
end