Merge pull request #546 from ZmagoD/zd_SCI_1185

adds input_sanitizer helper in app mailer [fixes SCI-1185]
This commit is contained in:
Zmago Devetak 2017-04-10 09:12:03 +02:00 committed by GitHub
commit ccb6cd0c8c

View file

@ -1,9 +1,9 @@
class AppMailer < Devise::Mailer
helper :application, :mailer
helper :application, :mailer, :input_sanitize
include Devise::Controllers::UrlHelpers
default template_path: 'users/mailer'
default from: ENV["MAIL_FROM"]
default reply: ENV["MAIL_REPLYTO"]
default from: ENV['MAIL_FROM']
default reply: ENV['MAIL_REPLYTO']
def notification(user, notification, opts = {})
@user = user