aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorMark McSpadden <markmcspadden@gmail.com>2012-05-17 03:00:31 -0400
committerMark McSpadden <markmcspadden@gmail.com>2012-05-17 03:00:31 -0400
commit2f06d5842b4c5969c2013d25bea4078563a02b13 (patch)
tree8bea77dd96e2e7fb5cc7e5e87034651f9c848814 /activesupport/lib
parent47971a1eb586167f2c039849cbccfdebcea4241d (diff)
downloadrails-2f06d5842b4c5969c2013d25bea4078563a02b13.tar.gz
rails-2f06d5842b4c5969c2013d25bea4078563a02b13.tar.bz2
rails-2f06d5842b4c5969c2013d25bea4078563a02b13.zip
Remove special cases for duplicable? on Class and Module
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/object/duplicable.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb
index 9d1630bb7c..dd63b64c77 100644
--- a/activesupport/lib/active_support/core_ext/object/duplicable.rb
+++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb
@@ -81,30 +81,6 @@ class Numeric
end
end
-class Class
- # Classes are not duplicable:
- #
- # c = Class.new # => #<Class:0x10328fd80>
- # c.dup # => #<Class:0x10328fd80>
- #
- # Note +dup+ returned the same class object.
- def duplicable?
- false
- end
-end
-
-class Module
- # Modules are not duplicable:
- #
- # m = Module.new # => #<Module:0x10328b6e0>
- # m.dup # => #<Module:0x10328b6e0>
- #
- # Note +dup+ returned the same module object.
- def duplicable?
- false
- end
-end
-
require 'bigdecimal'
class BigDecimal
begin