Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/cypress_on_rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

module CypressOnRails
class Railtie < Rails::Railtie
initializer :setup_cypress_middleware do |app|
if CypressOnRails.configuration.use_middleware?
app.middleware.use Middleware
end
end
config.after_initialize do |app|
if CypressOnRails.configuration.use_middleware?
app.middleware.use Middleware
end
end
end
end