lib/jpmobile/mailer.rb in jpmobile-1.0.6 vs lib/jpmobile/mailer.rb in jpmobile-1.0.7
- old
+ new
@@ -21,13 +21,18 @@
# for multi to addresses
Jpmobile::Mobile::AbstractMobile.new(nil, nil)
end
self.lookup_context.mobile = @mobile.variants
+ @mobile.decorated = headers.delete(:decorated)
+
m = super(headers, &block)
m.mobile = @mobile
m.charset = @mobile.mail_charset
+
+ # for decorated-mail manipulation
+ m.rearrange! if @mobile.decorated?
m
end
class << self