Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Classes should not be duplicable

#829

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

Reported by Frederick Cheung · August 14th, 2008 @ 02:50 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [654c41255d22b2767b943dbe970d8b24f2a1387b]) Mark Class as not being duplicable. [#829 Classes should not be duplicable state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    August 21st, 2008 @ 06:41 PM