From bfc80b5161743ee430cb73f097999cacdda8a894 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 | 2 ++ lib/generators/authentication/authentication_generator.rb | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10418c6..871fdaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## New version +* We don't need to add `config.action_mailer.default_url_options` anymore + ## Authentication Zero 4.0.2 ## * Remove dependency on redis / kredis for sudoable 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?