From 991359014085c5e49d622e0ec0e7955e23e998b0 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Fri, 20 May 2022 09:22:50 +0200 Subject: [PATCH] double quotes must be used! --- app/services/static.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/static.rb b/app/services/static.rb index e4a97bec6..6728ae1d9 100644 --- a/app/services/static.rb +++ b/app/services/static.rb @@ -5,7 +5,7 @@ class Static end def self.render(template_static, about, website) - string = ApplicationController.render( + code = ApplicationController.render( template: template_static, layout: false, assigns: { @@ -14,7 +14,7 @@ class Static } ) # We don't want ' in the frontmatters! - string.gsub! ''\;', "'" - string + code = code.gsub "'\;", "'" + code end end -- GitLab