summaryrefslogtreecommitdiff
path: root/app/controllers/projects/cycle_analytics/events_controller.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-16 09:58:23 +0100
committerJames Lopez <james@jameslopez.es>2016-11-17 08:22:59 +0100
commitcbc9f0cd1aa9f379952b6e4d3ad6df9971f9092a (patch)
treec8f1cfd9bab5183825a46ddd8a978d261b26cfec /app/controllers/projects/cycle_analytics/events_controller.rb
parent633ddc9ed98c690c082c7347422ac85f9b592fb4 (diff)
downloadgitlab-ce-cbc9f0cd1aa9f379952b6e4d3ad6df9971f9092a.tar.gz
fix issue with commits and also updated routes
Diffstat (limited to 'app/controllers/projects/cycle_analytics/events_controller.rb')
-rw-r--r--app/controllers/projects/cycle_analytics/events_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/projects/cycle_analytics/events_controller.rb b/app/controllers/projects/cycle_analytics/events_controller.rb
index cb52dfc830a..961183f44c3 100644
--- a/app/controllers/projects/cycle_analytics/events_controller.rb
+++ b/app/controllers/projects/cycle_analytics/events_controller.rb
@@ -1,4 +1,6 @@
-class Projects::CycleAnalytics::EventsController < Projects::ApplicationController
+module Projects
+ module CycleAnalytics
+class EventsController < Projects::ApplicationController
include CycleAnalyticsParams
before_action :authorize_read_cycle_analytics!
@@ -61,3 +63,5 @@ class Projects::CycleAnalytics::EventsController < Projects::ApplicationControll
return access_denied! unless current_user.can?(:read_build, project)
end
end
+ end
+end