diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-15 19:56:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-15 19:56:54 +0000 |
commit | 3f46dfdee9f93087d2fac73b621fe3676d7c6fac (patch) | |
tree | 5e96567b3de5fa83374ca5860858df602b8984af /app/models | |
parent | ed2a3a2244980bc39fba05a0d0e4de2e0b628211 (diff) | |
download | redmine-3f46dfdee9f93087d2fac73b621fe3676d7c6fac.tar.gz redmine-3f46dfdee9f93087d2fac73b621fe3676d7c6fac.zip |
Compatibility with ruby1.8 (#19305).
git-svn-id: http://svn.redmine.org/redmine/trunk@14115 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/setting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/setting.rb b/app/models/setting.rb index 2574649f3..0a40b183e 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -243,7 +243,7 @@ END_SRC private def force_utf8_strings(arg) - if arg.is_a?(String) + if arg.is_a?(String) && arg.respond_to?(:force_encoding) arg.dup.force_encoding('UTF-8') elsif arg.is_a?(Array) arg.map do |a| |