From cac386a099ef188ce7b99177e89ef66f96feb21c Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Mon, 7 Jun 2021 16:27:53 +0300 Subject: [PATCH] little notes --- app/mailers/application_mailer.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 2fdb84366..519d9e04d 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -2,10 +2,26 @@ class ApplicationMailer < ActionMailer::Base append_view_path Rails.root.join('app', 'views', 'mailers') layout 'mailer' + before_action :verification_before_send + def registrant_confirm_url(domain:, method:) token = domain.registrant_verification_token base_url = ENV['registrant_portal_verifications_base_url'] "#{base_url}/confirmation/#{domain.name_puny}/#{method}/#{token}" end + + def verification_before_send + p '===================================================================' + p '===================================================================' + p '===================================================================' + p '===================================================================' + p '===================================================================' + p mail + p '===================================================================' + p '===================================================================' + p '===================================================================' + p '===================================================================' + p '===================================================================' + end end