In the initialise step here it is assuming that the sprockets are loaded. This would raise an error and will not allow to boot the app if sprockets are not loaded/used.
Adding a guard clause to make sure it's not invoked if sprockets are not used would be helpful.
# lib/stripe/engine.rb
...
initializer 'stripe.assets.precompile' do |app|
if !::Rails.env.test? && app.config.respond_to?(:assets)
app.config.assets.precompile += %w( stripe_elements.js stripe_elements.css )
end
end
...
In the initialise step here it is assuming that the sprockets are loaded. This would raise an error and will not allow to boot the app if sprockets are not loaded/used.
Adding a guard clause to make sure it's not invoked if sprockets are not used would be helpful.