aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-01-15 19:49:34 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2017-01-15 19:49:34 +0100
commit7c3a99eeca07f602bb1e5659656e8eab0a4eacfe (patch)
tree053be53206aaf7bc2043a7283bce9b772b535ff8 /activesupport
parenta0a1ede8c2eb6436571eae8778033162d1f9dcc3 (diff)
downloadrails-7c3a99eeca07f602bb1e5659656e8eab0a4eacfe.tar.gz
rails-7c3a99eeca07f602bb1e5659656e8eab0a4eacfe.tar.bz2
rails-7c3a99eeca07f602bb1e5659656e8eab0a4eacfe.zip
Revert "Merge pull request #27686 from koic/friendly_bigdecimal_inspect"
The exact inspect output of a BigDecimal is out of scope for what we're trying to communicate about `dup` and `duplicable?` here. Adding two examples distracts is disctracting, so keep the docs from before since our minimal version is Ruby 2.2.2. [ Koichi ITO, Jon Moss, Kasper Timm Hansen ] This reverts commit 2163874dedaf83e67599c2930c2686caa165fbad, reversing changes made to 46fdbc5290335ed38fa9fe2b6b0ef8abe4eccb1b.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/object/duplicable.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb
index ed0df42b0a..ea81df2bd8 100644
--- a/activesupport/lib/active_support/core_ext/object/duplicable.rb
+++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb
@@ -107,13 +107,6 @@ class BigDecimal
# BigDecimals are duplicable:
#
# BigDecimal.new("1.2").duplicable? # => true
- #
- # In Ruby 2.4.0:
- #
- # BigDecimal.new("1.2").dup # => 0.12e1
- #
- # Whereas in Ruby 2.2 and 2.3:
- #
# BigDecimal.new("1.2").dup # => #<BigDecimal:...,'0.12E1',18(18)>
def duplicable?
true