X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/466de96a91ece362400ec7ffe73ed243f9ce3067..e2839ae0988c8493e0f4f626695a0f4a7abd39d8:/app/helpers/user_mailer_helper.rb?ds=sidebyside diff --git a/app/helpers/user_mailer_helper.rb b/app/helpers/user_mailer_helper.rb index e5d6e39ac..be756c212 100644 --- a/app/helpers/user_mailer_helper.rb +++ b/app/helpers/user_mailer_helper.rb @@ -18,10 +18,10 @@ module UserMailerHelper ) end - def message_body(&block) + def message_body(&) render( :partial => "message_body", - :locals => { :body => capture(&block) } + :locals => { :body => capture(&) } ) end @@ -29,7 +29,7 @@ module UserMailerHelper # Because we can't use stylesheets in HTML emails, we need to inline the # styles. Rather than copy-paste the same string of CSS into every message, # we apply it once here, after the message has been composed. - html.gsub("
", '
') + html.gsub("
", '
').html_safe end def style_left