This project is archived and is in readonly mode.
Classes should not be duplicable
Reported by Frederick Cheung | August 14th, 2008 @ 02:50 PM | in 2.x
Classes are currently marked as duplicable and so class_inheritable_accessor calls dup on them which causes no end of trouble. Among other things a duped class doesn't have a name. It also means that
class Foo
class_inheritable_accessor :some_class
end
Foo.some_class = Bar
Foo.some_class == Bar #=> false
which guarantees you AssociationTypeMismatch errors and other niceties
Comments and changes to this ticket
-
Repository August 21st, 2008 @ 06:41 PM
- State changed from new to resolved
(from [654c41255d22b2767b943dbe970d8b24f2a1387b]) Mark Class as not being duplicable. [#829 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
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>
People watching this ticket
Attachments
Tags
Referenced by
- 829 Classes should not be duplicable (from [654c41255d22b2767b943dbe970d8b24f2a1387b]) Mark Cl...