Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index

This commit is contained in:
Oswaldo Ferreira 2017-02-02 21:16:23 -02:00
parent 4b160ab504
commit 3d7ace470b
2 changed files with 5 additions and 3 deletions

View file

@ -10,10 +10,8 @@ class Dashboard::ProjectsController < Dashboard::ApplicationController
@projects = @projects.sort(@sort = params[:sort]) @projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page]) @projects = @projects.page(params[:page])
@last_push = current_user.recent_push
respond_to do |format| respond_to do |format|
format.html format.html { @last_push = current_user.recent_push }
format.atom do format.atom do
event_filter event_filter
load_events load_events

View file

@ -0,0 +1,4 @@
---
title: Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
merge_request: 8956
author: