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