diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/bigdecimal')
-rw-r--r-- | activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb b/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb new file mode 100644 index 0000000000..d86adbea6c --- /dev/null +++ b/activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb @@ -0,0 +1,7 @@ +class BigDecimal #:nodoc: + + alias :_original_to_s :to_s + def to_s(format="F") + _original_to_s(format) + end +end
\ No newline at end of file |