mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
11 lines
366 B
Ruby
11 lines
366 B
Ruby
class ApplicationMailer < ActionMailer::Base
|
|
append_view_path Rails.root.join('app', 'views', 'mailers')
|
|
layout 'mailer'
|
|
|
|
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
|
|
end
|