1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Use .klass instead of .class_name.constantize.

git-svn-id: http://svn.redmine.org/redmine/trunk@13939 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-01-24 10:47:21 +00:00
parent ec09c2c3ca
commit 18abb3fd88

View File

@ -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