diff options
author | James Lopez <james@jameslopez.es> | 2016-11-14 11:52:29 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:58 +0100 |
commit | 81d0146c4cf0d34b1b81da770483ed864482149c (patch) | |
tree | 5c634b0fff5df0b5fe148a7cbbaee914b47cfcf5 /app/controllers/projects | |
parent | 1744d633eded81103ee4691e6980efb6930dc975 (diff) | |
download | gitlab-ce-81d0146c4cf0d34b1b81da770483ed864482149c.tar.gz |
WIP - refactoring URL builder and events presenter into serializers
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/cycle_analytics/events_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/cycle_analytics/events_controller.rb b/app/controllers/projects/cycle_analytics/events_controller.rb index bb9f93908ad..77b49d6c4b9 100644 --- a/app/controllers/projects/cycle_analytics/events_controller.rb +++ b/app/controllers/projects/cycle_analytics/events_controller.rb @@ -35,10 +35,10 @@ class Projects::CycleAnalytics::EventsController < Projects::ApplicationControll private - def render_events(events) + def render_events(events_list) respond_to do |format| format.html - format.json { render json: { events: events } } + format.json { render json: { events: events_list } } end end |