summaryrefslogtreecommitdiff
path: root/app/controllers/admin/dashboard_controller.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-07-25 10:09:21 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-07-25 17:59:47 +0100
commit22d53f06076e52165af3ba04d0b703bed20cfb97 (patch)
tree90f9a9a241452023e72d6f85e3d8abb0da5a9809 /app/controllers/admin/dashboard_controller.rb
parentea6dfcad9fdb2c673c1074c6d99ff1cca42d680a (diff)
downloadgitlab-ce-22d53f06076e52165af3ba04d0b703bed20cfb97.tar.gz
Fixes 500 error caused by pending delete projects in admin dashboard35453-pending-delete-projects-error-in-admin-dashboard-fix
Diffstat (limited to 'app/controllers/admin/dashboard_controller.rb')
-rw-r--r--app/controllers/admin/dashboard_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb
index 8360ce08bdc..05e749c00c0 100644
--- a/app/controllers/admin/dashboard_controller.rb
+++ b/app/controllers/admin/dashboard_controller.rb
@@ -1,6 +1,6 @@
class Admin::DashboardController < Admin::ApplicationController
def index
- @projects = Project.with_route.limit(10)
+ @projects = Project.without_deleted.with_route.limit(10)
@users = User.limit(10)
@groups = Group.with_route.limit(10)
end