Skip to content

Commit

Permalink
Only reload when setting new parent_mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
djfpaagman committed Nov 28, 2023
1 parent 714a154 commit 5963f40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def with_config(options)
# We need to reload the application, because the config can set a different
# parent_mailer class, which means `Passwordless::Mailer` needs to be
# reloaded. Simply reloading the whole application seems to be the easiest.
Rails.application.reloader.reload!
Rails.application.reloader.reload! if options.has_key?(:parent_mailer)

yield
ensure
Expand Down

0 comments on commit 5963f40

Please sign in to comment.