Skip to content

Commit

Permalink
Disable middleware if Propshaft is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasSkywalker authored Aug 12, 2023
1 parent 01b70de commit 2574f46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/heavens_door/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
module HeavensDoor
class Engine < ::Rails::Engine #:nodoc:
initializer 'HeavensDoor' do |app|
app.middleware.use HeavensDoor::Middleware
if !defined?(Propshaft)
app.middleware.use HeavensDoor::Middleware

app.config.assets.precompile += %w(heavens_door.js heavens_door.css)
app.config.assets.precompile += %w(heavens_door.js heavens_door.css)
end
end
end
end

0 comments on commit 2574f46

Please sign in to comment.