diff options
Diffstat (limited to 'app/controllers/projects/cycle_analytics_controller.rb')
-rw-r--r-- | app/controllers/projects/cycle_analytics_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/projects/cycle_analytics_controller.rb b/app/controllers/projects/cycle_analytics_controller.rb index 9903fae6f7d..dd0acc57425 100644 --- a/app/controllers/projects/cycle_analytics_controller.rb +++ b/app/controllers/projects/cycle_analytics_controller.rb @@ -1,4 +1,6 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController + include CycleAnalyticsHelper + before_action :authorize_read_cycle_analytics! def show @@ -6,7 +8,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController respond_to do |format| format.html - format.json { render json: @cycle_analytics } + format.json { render json: cycle_analytics_json(@cycle_analytics) } end end |