From a371aad9ac2f177eee761e8c0bfb0d358796373f Mon Sep 17 00:00:00 2001 From: Herve Saint-Amand Date: Sat, 28 Jan 2017 23:08:25 +0000 Subject: [PATCH] Renamed `apply_inline_css` to `style_message` as suggested --- app/helpers/notifier_helper.rb | 2 +- app/views/layouts/notifier.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) %>
-- 2.39.5