diff options
author | Sean McGivern <sean@gitlab.com> | 2017-04-05 11:24:15 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 15:20:55 +0200 |
commit | 5b698082323e019e47b5c739cdec0300b521340b (patch) | |
tree | 49e53d856dc00849b9757993cd83128d0ec1e642 /app/controllers/admin | |
parent | 0d7645e1b0312ea0a78401a835785422cc01660d (diff) | |
download | gitlab-ce-5b698082323e019e47b5c739cdec0300b521340b.tar.gz |
Rename user cohorts -> cohorts
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/cohorts_controller.rb | 9 | ||||
-rw-r--r-- | app/controllers/admin/user_cohorts_controller.rb | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/app/controllers/admin/cohorts_controller.rb b/app/controllers/admin/cohorts_controller.rb new file mode 100644 index 00000000000..947afe3a028 --- /dev/null +++ b/app/controllers/admin/cohorts_controller.rb @@ -0,0 +1,9 @@ +class Admin::CohortsController < Admin::ApplicationController + def index + if ApplicationSetting.current.usage_ping_enabled + @cohorts = Rails.cache.fetch('cohorts', expires_in: 1.day) do + CohortsService.new.execute + end + end + end +end diff --git a/app/controllers/admin/user_cohorts_controller.rb b/app/controllers/admin/user_cohorts_controller.rb deleted file mode 100644 index 1d9e3547807..00000000000 --- a/app/controllers/admin/user_cohorts_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -class Admin::UserCohortsController < Admin::ApplicationController - def index - if ApplicationSetting.current.usage_ping_enabled - @cohorts = Rails.cache.fetch('user_cohorts', expires_in: 1.day) do - UserCohortsService.new.execute - end - end - end -end |