Add open_merge_requests_count method

This commit is contained in:
Alfredo Sumaran 2016-03-01 21:04:34 -05:00
parent 3992e2269b
commit d1b22c3a0b

View file

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