diff options
author | Yosuke Kabuto <bluewhale1982@gmail.com> | 2016-05-15 15:03:19 +0900 |
---|---|---|
committer | Yosuke Kabuto <bluewhale1982@gmail.com> | 2016-05-15 15:03:19 +0900 |
commit | e9e11072d32707f903b66936efef8ecc9133dd8a (patch) | |
tree | 658ba032311dd3ead951fce70eba9e499ac574ac | |
parent | 330e011c6c7a56a09e7f26db8750a19ca7865261 (diff) | |
download | rails-e9e11072d32707f903b66936efef8ecc9133dd8a.tar.gz rails-e9e11072d32707f903b66936efef8ecc9133dd8a.tar.bz2 rails-e9e11072d32707f903b66936efef8ecc9133dd8a.zip |
Remove unnecessary constant
-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 |