diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-03-16 16:28:14 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-03-16 18:01:53 +0300 |
commit | 398a70f3e53b2adc90460dcc1c55bae276e12ffe (patch) | |
tree | 85cb196a6f3942ff3bbbbac3f4e59d643102351e /app/helpers/todos_helper.rb | |
parent | 68e64a5b44b7a0f540214ee8a3ca36ffcdb4fc6c (diff) |
Include routes when loading user projects
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r-- | app/helpers/todos_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb index 7f8efb0a4ac..4f5adf623f2 100644 --- a/app/helpers/todos_helper.rb +++ b/app/helpers/todos_helper.rb @@ -99,8 +99,7 @@ module TodosHelper end def todo_projects_options - projects = current_user.authorized_projects.sorted_by_activity.non_archived - projects = projects.includes(:namespace) + projects = current_user.authorized_projects.sorted_by_activity.non_archived.with_route projects = projects.map do |project| { id: project.id, text: project.name_with_namespace } |