This project is archived and is in readonly mode.

#5325 ✓stale
John Firebaugh

allow inheriting from a Rails::Engine child

Reported by John Firebaugh | August 7th, 2010 @ 02:39 AM

Rails::Engine::Configurable raises the error "You cannot inherit from a Rails::Engine child" if you try to do so.

Why not allow it? Is there a technical reason not to? I would like to do so, in order to encapsulate functionality for a series of similar engines.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar August 7th, 2010 @ 03:30 AM

    • Importance changed from “” to “Low”

    Which version of Rails did you try this on? Was it 3-0-stable branch or master?

    A couple of months back or so I had noticed some chatter that there is still development going on in that area of Rails so that's why Rails didn't allow you to inherit from a Rails::Engine child. However I don't have any references so it's just speculative.

    Also I think this discussion is better suited to the Rails Core group: http://groups.google.com/group/rubyonrails-core since it will get noticed better by the core members.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 05:00 PM

    • State changed from “new” to “open”

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

  • Santiago Pastorino

    Santiago Pastorino February 2nd, 2011 @ 05:00 PM

    • State changed from “open” to “stale”

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>

Pages