FIX: Properly render server side plugin outlets (#8106)

The behavior of the `render` helper method changed in Rails 6 so now the method doesn't render the template and return the output, instead it just returns the file content as-is. Context: https://meta.discourse.org/t/discourse-sitemap-plugin/40348/134?u=osama
This commit is contained in:
Osama Sayegh 2019-09-19 21:51:06 +03:00 committed by GitHub
parent d251f12c9c
commit 57db3c1fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ module ApplicationHelper
return "" if erbs.blank?
result = +""
erbs.each { |erb| result << render(file: erb) }
erbs.each { |erb| result << render(inline: File.read(erb)) }
result.html_safe
end