diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-05-15 15:22:44 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-05-15 15:22:44 -0300 |
commit | 6810847f495cd282c2659be738ac8271ecdec12f (patch) | |
tree | 658ba032311dd3ead951fce70eba9e499ac574ac /activesupport/lib/active_support/core_ext/big_decimal/conversions.rb | |
parent | 0827f9932f75360dc4a7db8046d08d55055e8526 (diff) | |
parent | e9e11072d32707f903b66936efef8ecc9133dd8a (diff) | |
download | rails-6810847f495cd282c2659be738ac8271ecdec12f.tar.gz rails-6810847f495cd282c2659be738ac8271ecdec12f.tar.bz2 rails-6810847f495cd282c2659be738ac8271ecdec12f.zip |
Merge pull request #25022 from ysksn/master
Add some assertions for BigDecimal#to_s
Diffstat (limited to 'activesupport/lib/active_support/core_ext/big_decimal/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/big_decimal/conversions.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb b/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb index 22fc7ecf92..074e2eabf8 100644 --- a/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb +++ b/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb @@ -3,10 +3,8 @@ require 'bigdecimal/util' module ActiveSupport module BigDecimalWithDefaultFormat #:nodoc: - DEFAULT_STRING_FORMAT = 'F' - - def to_s(format = nil) - super(format || DEFAULT_STRING_FORMAT) + def to_s(format = 'F') + super(format) end end end |