mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 07:52:19 +08:00
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:
parent
d251f12c9c
commit
57db3c1fbe
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user