diff --git a/lib/pghero/engine.rb b/lib/pghero/engine.rb index 2f755588..03e20d2b 100644 --- a/lib/pghero/engine.rb +++ b/lib/pghero/engine.rb @@ -4,8 +4,8 @@ class Engine < ::Rails::Engine initializer "pghero", group: :all do |app| # check if Rails api mode - if app.config.respond_to?(:assets) - if defined?(Sprockets) && Sprockets::VERSION.to_i >= 4 + if app.config.respond_to?(:assets) && defined?(Sprockets) + if Sprockets::VERSION.to_i >= 4 app.config.assets.precompile << "pghero/application.js" app.config.assets.precompile << "pghero/application.css" app.config.assets.precompile << "pghero/favicon.png"