This project is archived and is in readonly mode.

#3314 ✓stale
DerGuteMoritz

metaclass attribute inheritance

Reported by DerGuteMoritz | October 2nd, 2009 @ 04:42 PM

The current implementation of Object#metaclass in ActiveSupport doesn't respect inheritable attributes, e.g.:

class Foo
  class_inheritable_accessor :bar
end

Foo.bar = 'baz'
Foo.new.bar # => 'baz'
Foo.new.metaclass.bar # => nil

The attached patch adds this behavior.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar October 6th, 2010 @ 06:41 AM

    • State changed from “new” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

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>

Attachments

Pages