Class: UserMailer

Inherits:
BaseMailer show all
Defined in:
app/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#welcome(user_id) ⇒ Object


2
3
4
5
6
# File 'app/mailers/user_mailer.rb', line 2

def welcome(user_id)
  @user = User.find_by_id(user_id)
  return false if @user.blank?
  mail(to: @user.email, subject: "#{t('mail.welcome_subject', app_name: Setting.app_name)}")
end