diff options
author | Toon Claes <toon@gitlab.com> | 2017-05-31 00:24:17 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-05-31 00:24:17 +0300 |
commit | 1e5506d01619780da68fc51ada58188a9070255b (patch) | |
tree | b26383b07e7e4c279299e90d99d1b04804c49130 /app/controllers/dashboard_controller.rb | |
parent | db679788e46d55984a4af71034c6db11aed919e4 (diff) |
Remove some deprecated methods
To avoid the use of slow queries, remove some deprecated methods and encourage
the use of ProjectFinder to find projects.
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r-- | app/controllers/dashboard_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 6195121b931..f9c31920302 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -24,7 +24,7 @@ class DashboardController < Dashboard::ApplicationController def load_events projects = if params[:filter] == "starred" - current_user.viewable_starred_projects + ProjectsFinder.new(current_user: current_user, params: { starred: true }).execute else current_user.authorized_projects end |