Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work with Sprockets 4? #113

Open
sergey-koba-mobidev opened this issue Nov 8, 2019 · 1 comment
Open

Does it work with Sprockets 4? #113

sergey-koba-mobidev opened this issue Nov 8, 2019 · 1 comment

Comments

@sergey-koba-mobidev
Copy link

sergey-koba-mobidev commented Nov 8, 2019

After migrating to Rails 6 the engine stopped working with the next error

ActionView::Template::Error: The asset "apitome/highlight_themes/default.css" is not present in the asset pipeline.

It might me needed to create assets/config/manifest.js for engine

@bf4
Copy link
Contributor

bf4 commented Jan 30, 2020

fwiw

I've now removed from my config/initializers/assets.rb

Rails.application.config.assets.precompile += %w( apitome/*.css apitome/*.js )

and added to my app/assets/config/manifest.js

//= link apitome/application.css
//= link apitome/application.js
//= link apitome/highlight_themes/solarized-light.css

based on following the errors, and it doesn't raise anymore

probably could be tested by ensuring ActionDispatch::Integration::Session.new(Rails.application).get('/docs') returns a 200. I ended up writing an rspec request spec

@bf4 bf4 mentioned this issue Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants