summaryrefslogtreecommitdiffstats
path: root/app/helpers/my_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 17:00:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 17:00:14 +0000
commit8160f2addb05c662c5a9f20d7dfdf66e0e41534b (patch)
treed4a97ba823cdea4c9d479bcd5097e6ca0ffe20bd /app/helpers/my_helper.rb
parentd6c6c7ac62bf3cf0003cc950880de5597611eb1d (diff)
downloadredmine-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.rb2
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).