diff options
author | Rémy Coutable <remy@rymai.me> | 2016-03-22 21:19:53 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-03-23 14:02:15 +0300 |
commit | 7dc16346bba174d6075cf438adcd70a5596ba935 (patch) | |
tree | bdb093b32967dae0946476747a223124ee65f09f /app/controllers/dashboard/application_controller.rb | |
parent | 703f7c5d579a6ab6d7592c24f8e3f2813d9d1703 (diff) |
Fix an issue causing the Dashboard/Milestones page to be blank
Diffstat (limited to 'app/controllers/dashboard/application_controller.rb')
-rw-r--r-- | app/controllers/dashboard/application_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/dashboard/application_controller.rb b/app/controllers/dashboard/application_controller.rb index 962ea38d6c9..9d3d1c23c28 100644 --- a/app/controllers/dashboard/application_controller.rb +++ b/app/controllers/dashboard/application_controller.rb @@ -1,3 +1,9 @@ class Dashboard::ApplicationController < ApplicationController layout 'dashboard' + + private + + def projects + @projects ||= current_user.authorized_projects.sorted_by_activity.non_archived + end end |