From 82cefbf936b54dcbbdda8ddb294d81b5710c6360 Mon Sep 17 00:00:00 2001 From: Jah Seng Lee Date: Tue, 12 Dec 2023 18:17:49 +0800 Subject: [PATCH] Remove second declaration of confirmation email --- app/mailers/devise_mailer.rb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/mailers/devise_mailer.rb b/app/mailers/devise_mailer.rb index 9d90d53..45ce0ca 100644 --- a/app/mailers/devise_mailer.rb +++ b/app/mailers/devise_mailer.rb @@ -32,18 +32,5 @@ def reset_password_instructions(record, token, opts = {}) message_stream: "outbound" ) end - - def confirmation_instructions(record, token, opts = {}) - self.template_model = ApplicationMailer::DEFAULT_ARGS.merge({ - action_url: confirmation_url(record, confirmation_token: token), - display_name: record.display_name, - }) - - mail( - to: record.email, - postmark_template_alias: "confirmation-instructions", - track_opens: "true", - message_stream: "outbound" - ) - end end +