summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 1 insertions, 1 deletions
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