This project is archived and is in readonly mode.
Engine's static assets taking priority over applications
-
rubymaverick
I created repo's on GitHub for the Parent App (https://github.com/rubymaverick/Parent-App) and the Engine (https://github.com/rubymaverick/Engine-App) so anyone can replicate this. Just pull down both repos into the same directory, use bundler to resolve the parent apps dependencies, fire up the server, and go to http://localhost:3000/engine-app.
The file parent_app/public/engine_app_engine/stylesheets/style.css does not get served, instead engine_app/public/stylesheets/style.css does.
-
rubymaverick
Here is a patch with a failing test proving the bug
-
rubymaverick
Another failing test. Proves that engines initializers are loaded before the applications, which I think is the cause of the problem?
-
José Valim
- State changed from new to open
- Milestone set to 3.1
- Assigned user set to Piotr Sarnacki
- Importance changed from to High
Piotr, could you please take a look at this?
-
Piotr Sarnacki
@rubymaverick: the loading of initializers is ok, they should load before application's ones, I just haven't noticed that with such behavior assets from engine will have higher priority.
-
Repository
- State changed from open to resolved
(from [e6369bc9e97d0f1e5583725cd9f684bbe4fca3e1]) Application's assets should have higher priority than engine's ones [#6388 state:resolved] https://github.com/rails/rails/commit/e6369bc9e97d0f1e5583725cd9f68...
-
Piotr Sarnacki
- No changes were found…
