##// END OF EJS Templates
Use .klass instead of .class_name.constantize....
Jean-Philippe Lang -
r13557:18abb3fd8815
parent child
Show More
@@ -408,7 +408,7 module IssuesHelper
408 @detail_value_name_by_reflection ||= Hash.new do |hash, key|
408 @detail_value_name_by_reflection ||= Hash.new do |hash, key|
409 association = Issue.reflect_on_association(key.first.to_sym)
409 association = Issue.reflect_on_association(key.first.to_sym)
410 if association
410 if association
411 record = association.class_name.constantize.find_by_id(key.last)
411 record = association.klass.find_by_id(key.last)
412 if record
412 if record
413 record.name.force_encoding('UTF-8')
413 record.name.force_encoding('UTF-8')
414 hash[key] = record.name
414 hash[key] = record.name
General Comments 0
You need to be logged in to leave comments. Login now