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.

allow inheriting from a Rails::Engine child

#5325

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.

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

State: stale
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • 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.

    August 7th, 2010 @ 03:30 AM

  2. Santiago Pastorino
    Santiago Pastorino
    • 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.

    February 2nd, 2011 @ 05:00 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 05:00 PM