little notes

This commit is contained in:
Oleg Hasjanov 2021-06-07 16:27:53 +03:00
parent 8c948cb532
commit cac386a099

View file

@ -2,10 +2,26 @@ class ApplicationMailer < ActionMailer::Base
append_view_path Rails.root.join('app', 'views', 'mailers') append_view_path Rails.root.join('app', 'views', 'mailers')
layout 'mailer' layout 'mailer'
before_action :verification_before_send
def registrant_confirm_url(domain:, method:) def registrant_confirm_url(domain:, method:)
token = domain.registrant_verification_token token = domain.registrant_verification_token
base_url = ENV['registrant_portal_verifications_base_url'] base_url = ENV['registrant_portal_verifications_base_url']
"#{base_url}/confirmation/#{domain.name_puny}/#{method}/#{token}" "#{base_url}/confirmation/#{domain.name_puny}/#{method}/#{token}"
end end
def verification_before_send
p '==================================================================='
p '==================================================================='
p '==================================================================='
p '==================================================================='
p '==================================================================='
p mail
p '==================================================================='
p '==================================================================='
p '==================================================================='
p '==================================================================='
p '==================================================================='
end
end end