Refactored the code to invoke the message body partial layout, as suggested in the PR

This commit is contained in:
Herve Saint-Amand 2017-01-16 22:50:01 +00:00
parent e5152c3931
commit e3e5ad4c5f
7 changed files with 18 additions and 11 deletions

View file

@ -11,4 +11,11 @@ module NotifierHelper
:style => "text-decoration: none; color: #222; font-weight: bold"
)
end
def message_body(&block)
render(
partial: "message_body",
locals: { body: capture(&block) }
)
end
end