Replace in-tree engine_assets with its successor: isolate_assets gem#187
Merged
igorkasyanchuk merged 2 commits intoigorkasyanchuk:masterfrom Jan 15, 2026
Merged
Conversation
Author
|
Hmm, looks like I should have removed the lockfiles from the repo for the CI PR, otherwise the gem cache gets mad. Just fixed in a commit. This should be cherry-picked to master, if this branch doesnt get merged. I can move out to its own PR, too, if you'd prefer. |
Owner
|
great gems PS: don't forget to promote your gems on some forums, newsletters, etc. You need to do it, otherwise nobody will find them. You can add a link to isolate_assets in readme of this gem, mentioning how assets work somewhere in the docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey Igor,
I'm working on a rails engine of my own: https://github.com/botandrose/trainspotter , and ran into that same problem where I wanted to have my own image and javascript and css assets, but can't rely on the host app's asset pipeline.
So rather than just copy and paste the engine_assets code from rails_performance, I took the time to extract it to its own gem, and polish it up a bit. The result is https://github.com/botandrose/isolate_assets !
Its a bit more capable than engine_assets, and has some nice added features, like being able to use the app/assets directory. Plus the API is really nice, just
isolate_assetsin the engine definition.I used this branch to work through the extraction, so I'm pushing it up here as PR, if you don't mind adding a gem dependency to the project. If you'd rather keep it in-repo, that's fine too.