Rails Full Engine using a Full Engine
Posted
by
SirLenz0rlot
on Stack Overflow
See other posts from Stack Overflow
or by SirLenz0rlot
Published on 2012-11-14T18:18:50Z
Indexed on
2012/11/18
23:01 UTC
Read the original article
Hit count: 286
I've got this full rails engine Foo with functionality X.
I want to make another engine, engine Bar, that is pretty much the same, but override funcitonality x with y. (it basically does the same, but a few controller actions and views are differently implemented).
(I might split this later in several mountable engines, but for now, this will be the setup: project Baz, using engine Bar, which uses engine Foo)
I would like to know if there are any pitfalls. It doesn't seem like a pattern that is often used? Anybody else using this 'some sort of engine inheritance'?
© Stack Overflow or respective owner