BigDecimal#new has been marked for deprecation for awhile and it looks like it finally happened in Ruby 2.7? This broke our configuration that used #new as the parser:
element :payment, BigDecimal, :tag => 'payment', :parser => :new
I have been able to register a new SupportedType and get the new syntax working:
module HappyMapper
module SupportedTypes
register_type BigDecimal do |value|
BigDecimal(value) if value && !value.empty?
end
end
end
Is the right approach or am I missing some other way to solve this issue?