diff --git a/app/services/static.rb b/app/services/static.rb index e4a97bec64ec141bb9cd8e279e4496fdc0c9d166..6728ae1d96705bcf5e1688d672dd2779ffe6b0f7 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