project.issues_labels method
This commit is contained in:
parent
fa325ce977
commit
63fe042d97
3 changed files with 7 additions and 2 deletions
|
@ -159,6 +159,10 @@ class Project < ActiveRecord::Base
|
|||
def project_id
|
||||
self.id
|
||||
end
|
||||
|
||||
def issues_labels
|
||||
issues.tag_counts_on(:labels)
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue