Renamed apply_inline_css to style_message as suggested

This commit is contained in:
Herve Saint-Amand 2017-01-28 23:08:25 +00:00
parent f83b719f03
commit a371aad9ac
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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>