From: Herve Saint-Amand Date: Sat, 28 Jan 2017 23:08:25 +0000 (+0000) Subject: Renamed `apply_inline_css` to `style_message` as suggested X-Git-Tag: live~4233^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a371aad9ac2f177eee761e8c0bfb0d358796373f Renamed `apply_inline_css` to `style_message` as suggested --- diff --git a/app/helpers/notifier_helper.rb b/app/helpers/notifier_helper.rb index be01e5391..3e53e2543 100644 --- a/app/helpers/notifier_helper.rb +++ b/app/helpers/notifier_helper.rb @@ -19,7 +19,7 @@ module NotifierHelper ) end - def apply_inline_css(html) + def style_message(html) html.gsub /

/, '

' end end diff --git a/app/views/layouts/notifier.html.erb b/app/views/layouts/notifier.html.erb index 8287d5ec0..dd041cca5 100644 --- a/app/views/layouts/notifier.html.erb +++ b/app/views/layouts/notifier.html.erb @@ -24,7 +24,7 @@
- <%= raw apply_inline_css(yield) %> + <%= raw style_message(yield) %>