app/mailers/pageflow/user_mailer.rb in pageflow-0.10.0 vs app/mailers/pageflow/user_mailer.rb in pageflow-0.11.0

- old
+ new

@@ -2,12 +2,14 @@ class UserMailer < ActionMailer::Base include Resque::Mailer def invitation(options) @user = User.find(options['user_id']) + @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) + mail(to: @user.email, subject: t('.subject'), from: Pageflow.config.mailer_sender) end end end end