This project is archived and is in readonly mode.
[PATCH] Class and Module are duplicable
Reported by Sebastian Martinez | April 18th, 2011 @ 01:19 AM
In active_support/core_ext/object/duplicable.rb says that either
Class and Module are not duplicable.
If you run on the console:
Class.new.duplicable?
=> false
Module.new.duplicable?
=> false
but, if you do
Class.new.dup
=> #<Class:0x00000102983160>
Module.new.dup
=> #<Module:0x00000102976988>
Also DuplicableTest is not really testing if it raises an
Exception.
Marked Class and Module as duplicable (as they are now) and fixed
the test.
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>