Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/roles
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-04 11:51:35 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-10-04 11:51:35 +0400
commitd88332709cfa42d7f1ccd9ab6bc7622b970ef9de (patch)
tree7c48e0aecc07f40bd949e5f91449339ab7c3dbea /app/roles
parentc626ec3746f0346a4a90ebf6a0860583b79dd250 (diff)
Fixed group issues/mr. Also speedup project list of admin area
Diffstat (limited to 'app/roles')
-rw-r--r--app/roles/issue_commonality.rb1
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,