add content_type config parameter

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Glenn Roberts
2010-02-17 19:24:42 +02:00
committed by José Valim
parent 187ef5c452
commit b0ff0d46dd
4 changed files with 11 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class DeviseMailer < ::ActionMailer::Base
from mailer_sender(mapping)
recipients record.email
sent_on Time.now
content_type 'text/html'
content_type Devise.mailer_content_type
body render_with_scope(key, mapping, mapping.name => record, :resource => record)
end