Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-16 11:58:23 +0300
committerJames Lopez <james@jameslopez.es>2016-11-17 10:22:59 +0300
commitcbc9f0cd1aa9f379952b6e4d3ad6df9971f9092a (patch)
treec8f1cfd9bab5183825a46ddd8a978d261b26cfec /app/controllers/projects/cycle_analytics
parent633ddc9ed98c690c082c7347422ac85f9b592fb4 (diff)
fix issue with commits and also updated routes
Diffstat (limited to 'app/controllers/projects/cycle_analytics')
-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