Skip to content
Snippets Groups Projects
Commit 63fe042d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

project.issues_labels method

parent fa325ce9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
# Contains common functionality shared between Issues and MergeRequests
# Contains common functionality
# shared between Issues and MergeRequests
module IssueCommonality
extend ActiveSupport::Concern
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment