]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/notifier_helper.rb
Refactored the code to invoke the message body partial layout, as suggested in the PR
[rails.git] / app / helpers / notifier_helper.rb
index 62801ed82394ce45ab7aa9f20784b0aa4f8c3eb9..0510ae0a89280dc97d5bb3ef0c2eb2e21d54ea36 100644 (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