diff options
author | James Lopez <james@jameslopez.es> | 2016-10-27 17:52:42 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:56 +0100 |
commit | ca9ae8bf63ff94c68143823046ab2a7466f30b1c (patch) | |
tree | e93849d907a53cbe1bc568c507e4a89736584986 /app/controllers/projects | |
parent | 32679232635dbd0d196a91d0788ee1135ff56b43 (diff) | |
download | gitlab-ce-ca9ae8bf63ff94c68143823046ab2a7466f30b1c.tar.gz |
add email to user related queries so it can be used for displaying avatar in the UI
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/cycle_analytics/events_controller.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/controllers/projects/cycle_analytics/events_controller.rb b/app/controllers/projects/cycle_analytics/events_controller.rb index 142cbc344a5..49c7303dccc 100644 --- a/app/controllers/projects/cycle_analytics/events_controller.rb +++ b/app/controllers/projects/cycle_analytics/events_controller.rb @@ -1,5 +1,5 @@ class Projects::CycleAnalytics::EventsController < Projects::ApplicationController - #before_action :authorize_read_cycle_analytics! + # before_action :authorize_read_cycle_analytics! def issue render_events(events.issue_events) @@ -41,12 +41,12 @@ class Projects::CycleAnalytics::EventsController < Projects::ApplicationControll # TODO refactor this def start_date case events_params[:start_date] - when '30' then - 30.days.ago - when '90' then - 90.days.ago - else - 90.days.ago + when '30' then + 30.days.ago + when '90' then + 90.days.ago + else + 90.days.ago end end @@ -59,4 +59,4 @@ class Projects::CycleAnalytics::EventsController < Projects::ApplicationControll { start_date: params[:events][:start_date] } end -end
\ No newline at end of file +end |