Closed codealchemy closed 2 years ago
I was able to narrow this down to the RailsAdmin apply configuration
initializer - my issue looks to be similar to https://github.com/railsadminteam/rails_admin/issues/3533 where the change from https://github.com/railsadminteam/rails_admin/commit/e59a9353e742b0f6e6b152d1b1f9e7cafad3ee54 causes issues with other engines that affect application middleware. Closing to consolidate under #3533
Describe the bug
Attempting to run
bundle exec rake assets:precompile
raises an exceptionReproduction steps
Update gem in a project using
:sprockets
, attempt to precompileExpected behavior
Assets to be compiled as before
Additional context
rails
version:6.0.5
rails_admin
version:3.0.0.beta
rails_admin
npm package version: N/A(reduced this down to the essential bit of the error as we have internal middlewares in addition to those from Rails)
This appears to be related to changes to initialization from https://github.com/railsadminteam/rails_admin/commit/e59a9353e742b0f6e6b152d1b1f9e7cafad3ee54
Workaround
Keep only the precompile initializer during precompilation