mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Compatibility with ruby1.8 (#19305).
git-svn-id: http://svn.redmine.org/redmine/trunk@14115 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ed2a3a2244
commit
3f46dfdee9
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user