Add open_merge_requests_count method
This commit is contained in:
parent
3992e2269b
commit
d1b22c3a0b
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ class Label < ActiveRecord::Base
|
|||
issues.closed.count
|
||||
end
|
||||
|
||||
def open_merge_requests_count
|
||||
merge_requests.opened.count
|
||||
end
|
||||
|
||||
def template?
|
||||
template
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue