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,9 +11,9 @@
<% end %>
</p>
<%= render "notifier/user_message_table", :captured => capture { %>
<%= message_body do %>
<%= @comment.to_html %>
<% } %>
<% end %>
<p>
<%= raw t 'notifier.changeset_comment_notification.details', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url)) %>