Skip to content
Snippets Groups Projects
Commit 22d3d5a3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

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
No related merge requests found
......@@ -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
......
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