Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
This commit is contained in:
parent
4b160ab504
commit
3d7ace470b
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Remove unnecessary queries for .atom and .json in Dashboard::ProjectsController#index
|
||||||
|
merge_request: 8956
|
||||||
|
author:
|
Loading…
Reference in a new issue