lib/ext/big_decimal.rb in terraformer-0.0.3 vs lib/ext/big_decimal.rb in terraformer-0.0.4

- old
+ new

@@ -6,7 +6,10 @@ def to_rad (self * Terraformer::RADIANS_PER_DEGREE).round Terraformer::PRECISION end -end + def to_json *args + finite? ? to_f.to_json : NilClass::AS_JSON + end +end