From ffd15032a43280d50dfcf5aea311c63fdc456e86 Mon Sep 17 00:00:00 2001 From: Suzuki Kyosuke Date: Wed, 13 Sep 2017 15:25:55 +0900 Subject: [PATCH] remove find_all_by_ --- lib/tagging_plugin/tagging_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tagging_plugin/tagging_hooks.rb b/lib/tagging_plugin/tagging_hooks.rb index ce472b5..232a7c1 100755 --- a/lib/tagging_plugin/tagging_hooks.rb +++ b/lib/tagging_plugin/tagging_hooks.rb @@ -192,7 +192,7 @@ def view_issues_bulk_edit_details_bottom(context = {}) def view_reports_issue_report_split_content_right(context={}) project_context = ContextHelper.context_for(context[:project]) - tags = ActsAsTaggableOn::Tagging.find_all_by_context(project_context).map(&:tag).uniq + tags = ActsAsTaggableOn::Tagging.where(context: project_context).map(&:tag).uniq tags_by_status = IssueTag.by_issue_status(context[:project]) <<-HTML