Commit 22d3d5a3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Defines String#to_a (Object#to_a removed in ruby1.9).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2912 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 531eb655
......@@ -36,6 +36,13 @@ module Redmine #:nodoc:
s.gsub!(',', '.')
begin; Kernel.Float(s); rescue; nil; end
end
# Object#to_a removed in ruby1.9
if RUBY_VERSION > '1.9'
def to_a
[self.dup]
end
end
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment