Skip to content

Commit f98e8b6

Browse files
committed
Re-order class
1 parent 79e49f0 commit f98e8b6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/courrier/email/providers/userlist.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)