Refactored the code to invoke the message body partial layout, as suggested in the PR
This commit is contained in:
parent
e5152c3931
commit
e3e5ad4c5f
7 changed files with 18 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue