diff options
author | James Lopez <james@jameslopez.es> | 2016-11-16 11:58:23 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 10:22:59 +0300 |
commit | cbc9f0cd1aa9f379952b6e4d3ad6df9971f9092a (patch) | |
tree | c8f1cfd9bab5183825a46ddd8a978d261b26cfec /app/controllers | |
parent | 633ddc9ed98c690c082c7347422ac85f9b592fb4 (diff) |
fix issue with commits and also updated routes
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/cycle_analytics/events_controller.rb | 6 |
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 |