X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9ad6d852c437a00e6cf9f0f529525a3b33d9901..a2a5af61460017510d88b91c1dbfc9c752035319:/app/helpers/user_mailer_helper.rb diff --git a/app/helpers/user_mailer_helper.rb b/app/helpers/user_mailer_helper.rb index 39977f5a7..d47827074 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("
", '
') end def style_left