Class: AuctionFunCore::Services::Mail::UserContext::RegistrationMailer
- Inherits:
-
Object
- Object
- AuctionFunCore::Services::Mail::UserContext::RegistrationMailer
- Includes:
- IdleMailer::Mailer, IdleMailer::TemplateManager
- Defined in:
- lib/auction_fun_core/services/mail/user_context/registration_mailer.rb
Overview
Service class responsible for sending registration emails to users.
Class Method Summary collapse
-
.template_name ⇒ String
Returns the template name for the RegistrationMailer.
Instance Method Summary collapse
-
#initialize(user) ⇒ RegistrationMailer
constructor
Initializes a new RegistrationMailer instance.
Constructor Details
#initialize(user) ⇒ RegistrationMailer
Initializes a new RegistrationMailer instance.
15 16 17 18 19 |
# File 'lib/auction_fun_core/services/mail/user_context/registration_mailer.rb', line 15 def initialize(user) @user = user mail.to = user.email mail.subject = I18n.t("mail.user_context.registration.subject") end |
Class Method Details
.template_name ⇒ String
Returns the template name for the RegistrationMailer.
24 25 26 |
# File 'lib/auction_fun_core/services/mail/user_context/registration_mailer.rb', line 24 def self.template_name IdleMailer.config.templates.join("user_context/registration") end |