Skip to content

Commit

Permalink
Explicitly reload the routes for Rails 8 routes lazy loader
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jun 17, 2024
1 parent 15ea7da commit 33bc0e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/fake_app/fake_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Application < Rails::Application
config.logger = ActiveSupport::Logger.new($stdout)

config.action_mailer.delivery_method = :test

config.after_initialize do |app|
app.routes_reloader.reload!
end
end
end
ActiveDecoratorTestApp::Application.initialize!
Expand Down

0 comments on commit 33bc0e3

Please sign in to comment.