Renamed apply_inline_css
to style_message
as suggested
This commit is contained in:
parent
f83b719f03
commit
a371aad9ac
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ module NotifierHelper
|
|||
)
|
||||
end
|
||||
|
||||
def apply_inline_css(html)
|
||||
def style_message(html)
|
||||
html.gsub /<p>/, '<p style="color: black; margin: 0.75em 0">'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<table style="background-color: #fff; color: #222; border: solid 1px #ccc; border-collapse: separate">
|
||||
<tr>
|
||||
<td style="text-align: left; padding: 0px 15px 5px 15px">
|
||||
<%= raw apply_inline_css(yield) %>
|
||||
<%= raw style_message(yield) %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue