replace deprecated method

pull/7876/head
ulferts 5 years ago
parent a8a274ae7a
commit d582b58826
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      modules/bcf/lib/open_project/bcf/bcf_json/viewpoint_reader.rb

@ -183,7 +183,7 @@ module OpenProject::Bcf
end
def to_numeric(anything)
num = BigDecimal.new(anything.to_s)
num = BigDecimal(anything.to_s)
if num.frac == 0
num.to_i
else

Loading…
Cancel
Save