diff options
author | David Celis <me@davidcel.is> | 2014-02-01 10:26:50 -0800 |
---|---|---|
committer | David Celis <me@davidcel.is> | 2014-02-01 10:45:57 -0800 |
commit | c87b27ebde4c5a0bc172ffce59faaadb20301dec (patch) | |
tree | 7d09a02415ca056abec9b0105eb33866ec651856 /activesupport/lib | |
parent | 85d820b1693a52faddf1f838512e132906272e41 (diff) | |
download | rails-c87b27ebde4c5a0bc172ffce59faaadb20301dec.tar.gz rails-c87b27ebde4c5a0bc172ffce59faaadb20301dec.tar.bz2 rails-c87b27ebde4c5a0bc172ffce59faaadb20301dec.zip |
Remove BigDecimal#to_d
This was backported for Ruby 1.8 support and is no longer needed.
Signed-off-by: David Celis <me@davidcel.is>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/big_decimal/conversions.rb | 7 |
1 files changed, 0 insertions, 7 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 54b49e6d04..843c592669 100644 --- a/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb +++ b/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb @@ -2,13 +2,6 @@ require 'bigdecimal' require 'bigdecimal/util' class BigDecimal - # Backport this method if it doesn't exist - unless method_defined?(:to_d) - def to_d - self - end - end - DEFAULT_STRING_FORMAT = 'F' def to_formatted_s(*args) if args[0].is_a?(Symbol) |