From 2381d985e8e856a776e6def1d1be9dd12ef56942 Mon Sep 17 00:00:00 2001 From: Nixon Date: Sat, 26 Oct 2024 15:11:55 -0300 Subject: [PATCH] We don't need to add action_mailer.default_url_options --- CHANGELOG.md | 1 + lib/generators/authentication/authentication_generator.rb | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10418c6..fcfbe4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## New version +* We don't need to add `config.action_mailer.default_url_options` ## Authentication Zero 4.0.2 ## diff --git a/lib/generators/authentication/authentication_generator.rb b/lib/generators/authentication/authentication_generator.rb index 1e9e7a4..1cf4667 100644 --- a/lib/generators/authentication/authentication_generator.rb +++ b/lib/generators/authentication/authentication_generator.rb @@ -40,11 +40,6 @@ def add_gems end end - def add_environment_configurations - application "config.action_mailer.default_url_options = { host: \"localhost\", port: 3000 }", env: "development" - application "config.action_mailer.default_url_options = { host: \"localhost\", port: 3000 }", env: "test" - end - def create_configuration_files copy_file "config/initializers/omniauth.rb" if omniauthable? copy_file "config/initializers/webauthn.rb" if webauthn?