From 2f06d5842b4c5969c2013d25bea4078563a02b13 Mon Sep 17 00:00:00 2001 From: Mark McSpadden Date: Thu, 17 May 2012 03:00:31 -0400 Subject: Remove special cases for duplicable? on Class and Module --- .../active_support/core_ext/object/duplicable.rb | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to 'activesupport/lib/active_support') 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 # => # - # c.dup # => # - # - # Note +dup+ returned the same class object. - def duplicable? - false - end -end - -class Module - # Modules are not duplicable: - # - # m = Module.new # => # - # m.dup # => # - # - # Note +dup+ returned the same module object. - def duplicable? - false - end -end - require 'bigdecimal' class BigDecimal begin -- cgit v1.2.3