mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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?
|
return "" if erbs.blank?
|
||||||
|
|
||||||
result = +""
|
result = +""
|
||||||
erbs.each { |erb| result << render(file: erb) }
|
erbs.each { |erb| result << render(inline: File.read(erb)) }
|
||||||
result.html_safe
|
result.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user