diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 17:00:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-21 17:00:14 +0000 |
commit | 8160f2addb05c662c5a9f20d7dfdf66e0e41534b (patch) | |
tree | d4a97ba823cdea4c9d479bcd5097e6ca0ffe20bd /app/helpers/my_helper.rb | |
parent | d6c6c7ac62bf3cf0003cc950880de5597611eb1d (diff) | |
download | redmine-8160f2addb05c662c5a9f20d7dfdf66e0e41534b.tar.gz redmine-8160f2addb05c662c5a9f20d7dfdf66e0e41534b.zip |
Adds a scope to get issues assigned to a user.
git-svn-id: http://svn.redmine.org/redmine/trunk@14720 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/my_helper.rb')
-rw-r--r-- | app/helpers/my_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb index acb9d836e..a559b9893 100644 --- a/app/helpers/my_helper.rb +++ b/app/helpers/my_helper.rb @@ -33,7 +33,7 @@ module MyHelper def issuesassignedtome_items Issue.visible.open. - where(:assigned_to_id => ([User.current.id] + User.current.group_ids)). + assigned_to(User.current). limit(10). includes(:status, :project, :tracker, :priority). references(:status, :project, :tracker, :priority). |