aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYosuke Kabuto <bluewhale1982@gmail.com>2016-05-15 15:03:19 +0900
committerYosuke Kabuto <bluewhale1982@gmail.com>2016-05-15 15:03:19 +0900
commite9e11072d32707f903b66936efef8ecc9133dd8a (patch)
tree658ba032311dd3ead951fce70eba9e499ac574ac /activesupport
parent330e011c6c7a56a09e7f26db8750a19ca7865261 (diff)
downloadrails-e9e11072d32707f903b66936efef8ecc9133dd8a.tar.gz
rails-e9e11072d32707f903b66936efef8ecc9133dd8a.tar.bz2
rails-e9e11072d32707f903b66936efef8ecc9133dd8a.zip
Remove unnecessary constant
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/big_decimal/conversions.rb6
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