app/mailers/spina/user_mailer.rb in spina-2.3.5 vs app/mailers/spina/user_mailer.rb in spina-2.4.0
- old
+ new
@@ -1,21 +1,13 @@
module Spina
- class UserMailer < ActionMailer::Base
- layout 'spina/mail'
+ class UserMailer < ApplicationMailer
- def forgot_password(user)
+ def forgot_password(user, user_agent_string = nil)
@user = user
-
- mail(
- to: @user.email,
- from: current_account.email,
- subject: t('spina.forgot_password.mail_subject')
- )
+ @browser = Browser.new(user_agent_string)
+
+ mail to: @user.email,
+ subject: t('spina.user_mailer.forgot_password.subject')
end
- private
-
- def current_account
- Spina::Account.first
- end
end
end
\ No newline at end of file