lib/roxml/definition.rb in roxml-4.0.0 vs lib/roxml/definition.rb in roxml-4.1.0
- old
+ new
@@ -174,10 +174,10 @@
# dynamically load these shorthands at class definition time, but
# only if they're already availbable
CORE_BLOCK_SHORTHANDS.tap do |blocks|
blocks.reverse_merge!(BigDecimal => lambda do |val|
all(val) do |v|
- BigDecimal.new(v) unless v.blank?
+ BigDecimal(v) unless v.blank?
end
end) if defined?(BigDecimal)
blocks.reverse_merge!(DateTime => lambda do |val|
if defined?(DateTime)