diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-04 11:51:35 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-04 11:51:35 +0400 |
commit | d88332709cfa42d7f1ccd9ab6bc7622b970ef9de (patch) | |
tree | 7c48e0aecc07f40bd949e5f91449339ab7c3dbea /app/roles | |
parent | c626ec3746f0346a4a90ebf6a0860583b79dd250 (diff) |
Fixed group issues/mr. Also speedup project list of admin area
Diffstat (limited to 'app/roles')
-rw-r--r-- | app/roles/issue_commonality.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/roles/issue_commonality.rb b/app/roles/issue_commonality.rb index 55b46ec0c89..ab6f89ff0b8 100644 --- a/app/roles/issue_commonality.rb +++ b/app/roles/issue_commonality.rb @@ -18,6 +18,7 @@ module IssueCommonality scope :opened, where(closed: false) scope :closed, where(closed: true) + scope :of_group, ->(group) { where(project_id: group.project_ids) } scope :assigned, lambda { |u| where(assignee_id: u.id)} delegate :name, |