From d68fd78bad38dbafe35534f7218c705fa65c2dd1 Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Thu, 13 Jul 2006 03:23:39 +0000 Subject: Customize default BigDecimal formatting. [dave@pragprog.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 activesupport/lib/active_support/core_ext/bigdecimal/formatting.rb (limited to 'activesupport/lib/active_support/core_ext/bigdecimal') 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 -- cgit v1.2.3