lib/roadie/rails/mail_inliner.rb in roadie-rails-1.0.1 vs lib/roadie/rails/mail_inliner.rb in roadie-rails-1.0.2
- old
+ new
@@ -7,11 +7,13 @@
@email = email
@options = options
end
def execute
- improve_body if email.content_type =~ /^text\/html/
- improve_html_part(email.html_part) if email.html_part
+ if options
+ improve_body if email.content_type =~ /^text\/html/
+ improve_html_part(email.html_part) if email.html_part
+ end
email
end
private
def improve_body