summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-05 11:24:15 +0100
committerRémy Coutable <remy@rymai.me>2017-04-14 15:20:55 +0200
commit5b698082323e019e47b5c739cdec0300b521340b (patch)
tree49e53d856dc00849b9757993cd83128d0ec1e642 /app/controllers/admin
parent0d7645e1b0312ea0a78401a835785422cc01660d (diff)
downloadgitlab-ce-5b698082323e019e47b5c739cdec0300b521340b.tar.gz
Rename user cohorts -> cohorts
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/cohorts_controller.rb9
-rw-r--r--app/controllers/admin/user_cohorts_controller.rb9
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