mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Fix CC issues
This commit is contained in:
parent
60a66bc540
commit
54eb1e91de
4 changed files with 78 additions and 47 deletions
|
@ -1,4 +1,15 @@
|
|||
class ApplicationMailer < ActionMailer::Base
|
||||
append_view_path Rails.root.join('app', 'views', 'mailers')
|
||||
layout 'mailer'
|
||||
end
|
||||
|
||||
def registrant_confirm_url(domain:, method:)
|
||||
token = domain.registrant_verification_token
|
||||
base_url = ENV['registrant_portal_verifications_base_url']
|
||||
|
||||
url = registrant_domain_delete_confirm_url(domain, token: token) if method == 'delete'
|
||||
url ||= registrant_domain_update_confirm_url(domain, token: token)
|
||||
return url if base_url.blank?
|
||||
|
||||
"#{base_url}/confirms/#{domain.name_puny}/#{method}/#{token}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue