diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 10:47:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-24 10:47:21 +0000 |
commit | 18abb3fd88154e47015b56d508e7eb6108611bad (patch) | |
tree | de01e34a06b2c153adebc5e9b741118e091a1a80 | |
parent | ec09c2c3caffe3f9b1e54974db9713d8a96d7a56 (diff) | |
download | redmine-18abb3fd88154e47015b56d508e7eb6108611bad.tar.gz redmine-18abb3fd88154e47015b56d508e7eb6108611bad.zip |
Use .klass instead of .class_name.constantize.
git-svn-id: http://svn.redmine.org/redmine/trunk@13939 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/issues_helper.rb | 2 |
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 |