From 18abb3fd88154e47015b56d508e7eb6108611bad Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 24 Jan 2015 10:47:21 +0000 Subject: [PATCH] Use .klass instead of .class_name.constantize. git-svn-id: http://svn.redmine.org/redmine/trunk@13939 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index a618a68e7..5706bf53d 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -408,7 +408,7 @@ module IssuesHelper @detail_value_name_by_reflection ||= Hash.new do |hash, key| association = Issue.reflect_on_association(key.first.to_sym) if association - record = association.class_name.constantize.find_by_id(key.last) + record = association.klass.find_by_id(key.last) if record record.name.force_encoding('UTF-8') hash[key] = record.name -- 2.39.5