From 63fe042d97a5430770ec50fc0e8f29c416bd2ec9 Mon Sep 17 00:00:00 2001 From: randx Date: Tue, 9 Oct 2012 20:39:06 +0300 Subject: project.issues_labels method --- app/controllers/labels_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/labels_controller.rb b/app/controllers/labels_controller.rb index 3cbbb8692e0..999351e22df 100644 --- a/app/controllers/labels_controller.rb +++ b/app/controllers/labels_controller.rb @@ -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 -- cgit v1.2.1