Sha256: ef1aacaed10adb65d21afbc05e4d48b81f1ecefb8cfb42eae87e99f9c97d1f8f
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
module EgovUtils class RegistrationRequestMailer < ApplicationMailer before_action { @host = params && params[:host] || Rails.application.config.action_mailer.default_url_options[:host] } def created(request_id) @request = EgovUtils::RegistrationRequest.find(request_id) mail(to: @request.mail, subject: I18n.t('mailers.registration_requests.created.subject')) end def accepted(request_id, user_id, password) @request = EgovUtils::RegistrationRequest.find(request_id) @user = User.find(user_id) @password = password mail(to: @user.mail, subject: I18n.t('mailers.registration_requests.accepted.subject')) end def auto_accepted(request_id) @request = EgovUtils::RegistrationRequest.find(request_id) mail(to: @request.mail, subject: I18n.t('mailers.registration_requests.auto_accepted.subject')) end def rejected(request_id) @request = EgovUtils::RegistrationRequest.find(request_id) mail(to: @request.mail, subject: I18n.t('mailers.registration_requests.rejected.subject')) end end end
Version data entries
4 entries across 4 versions & 1 rubygems