Fix SVG files not being correctly included in templates (#16001)

In Rails 6.1, raw file inclusion in templates have to be explicitly marked as
HTML-safe, otherwise it's rendered as text.
This commit is contained in:
Claire
2021-04-05 13:05:49 +02:00
committed by GitHub
parent 3511797e3f
commit 117f6638d0
2 changed files with 3 additions and 3 deletions

View File

@ -21,4 +21,4 @@
= yield
.logo-resources
= render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')
= raw render file: Rails.root.join('app', 'javascript', 'images', 'logo_transparent.svg')