Commit d1b22c3a authored by Alfredo Sumaran's avatar Alfredo Sumaran

Add open_merge_requests_count method

parent 3992e226
...@@ -91,6 +91,10 @@ class Label < ActiveRecord::Base ...@@ -91,6 +91,10 @@ class Label < ActiveRecord::Base
issues.closed.count issues.closed.count
end end
def open_merge_requests_count
merge_requests.opened.count
end
def template? def template?
template template
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment