File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
lib/courrier/email/providers Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,17 @@ def body_document
3333 end
3434 end
3535
36- def text_document
36+ def provider_options
37+ { "theme" => nil } . merge ( @provider_options )
38+ end
39+
40+ def multipart_document
3741 {
38- "type" => "text" ,
39- "content" => @options . text
42+ "type" => "multipart" ,
43+ "content" => [
44+ html_document ,
45+ text_document
46+ ]
4047 }
4148 end
4249
@@ -47,19 +54,12 @@ def html_document
4754 }
4855 end
4956
50- def multipart_document
57+ def text_document
5158 {
52- "type" => "multipart" ,
53- "content" => [
54- html_document ,
55- text_document
56- ]
59+ "type" => "text" ,
60+ "content" => @options . text
5761 }
5862 end
59-
60- def provider_options
61- { "theme" => nil } . merge ( @provider_options )
62- end
6363 end
6464 end
6565 end
You can’t perform that action at this time.
0 commit comments