Disable Rails XSS protection in ActionMailer views

Updated . Posted . 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
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)