app/mailers/pageflow/user_mailer.rb in pageflow-0.11.4 vs app/mailers/pageflow/user_mailer.rb in pageflow-12.0.0.rc1

- old
+ new

@@ -1,11 +1,13 @@ module Pageflow class UserMailer < ActionMailer::Base include Resque::Mailer def invitation(options) - @user = User.find(options['user_id']) - @password_token = options['password_token'] + options.symbolize_keys! + + @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) end