diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-02-03 02:16:23 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-02-03 18:51:24 +0300 |
commit | 3d7ace470b1f4c0f4cf90db6b1f7f1243c112de9 (patch) | |
tree | c4ece748ab0d2421e010dc9134151e0decb586fd /app/controllers/dashboard/projects_controller.rb | |
parent | 4b160ab504ff6dd5c95e8defdd3ee7f00d7c8ab3 (diff) |
Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
Diffstat (limited to 'app/controllers/dashboard/projects_controller.rb')
-rw-r--r-- | app/controllers/dashboard/projects_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb index c08eb811532..3ba8c2f8bb9 100644 --- a/app/controllers/dashboard/projects_controller.rb +++ b/app/controllers/dashboard/projects_controller.rb @@ -10,10 +10,8 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController @projects = @projects.sort(@sort = params[:sort]) @projects = @projects.page(params[:page]) - @last_push = current_user.recent_push - respond_to do |format| - format.html + format.html { @last_push = current_user.recent_push } format.atom do event_filter load_events |