Fixed group issues/mr. Also speedup project list of admin area

This commit is contained in:
Dmitriy Zaporozhets 2012-10-04 10:51:35 +03:00
parent c626ec3746
commit d88332709c
5 changed files with 16 additions and 6 deletions

View file

@ -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,