Commit 63fe042d authored by randx's avatar randx
Browse files

project.issues_labels method

parent 92ffa759d6e7
......@@ -7,7 +7,7 @@ class LabelsController < ProjectResourceController
respond_to :js, :html
def index
@labels = @project.issues.tag_counts_on(:labels).order('count DESC')
@labels = @project.issues_labels.order('count DESC')
end
protected
......
......@@ -159,6 +159,10 @@ def wiki_notes
def project_id
self.id
end
def issues_labels
issues.tag_counts_on(:labels)
end
end
# == Schema Information
......
# Contains common functionality shared between Issues and MergeRequests
# Contains common functionality
# shared between Issues and MergeRequests
module IssueCommonality
extend ActiveSupport::Concern
......
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