When using a mountable Engine in a Rails application it is necessary, to mount this Engine in the parent apps config/routes.rb
file like this:
mount MyEngine::Engine, at: "/my_engine"
But, would it be also possible somehow to mount the Engine in the parent app dynamically e.g. in the initializer call during installation of the Engine with bundle install
?
Aucun commentaire:
Enregistrer un commentaire