Class: Pageflow::UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/pageflow/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#invitation(options) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'app/mailers/pageflow/user_mailer.rb', line 3

def invitation(options)
  @user = options[:user]
  @password_token = options[:password_token]

  I18n.with_locale(@user.locale) do
    headers('X-Language' => I18n.locale)
    mail(to: @user.email, subject: t('.subject'), from: Pageflow.config.mailer_sender)
  end
end