Disable Rails XSS protection in ActionMailer views

Posted Over 13 years ago. Visible to the public.

This might eventually be fixed by Rails itself.\
Right now this is the way to have the rails_xss plugin not escape the body of ActionMailer mails.

Put this into config/initializers/mailers_without_rails_xss.rb:

Arne Hartherz
Last edit
Over 12 years ago
Keywords
mail, e-mail, email, rails_xss, html_safe
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2010-09-07 08:51)