mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: correct Rails 6 deprecation
render template is backwards compatible with Rails 5, code is simpler. Thanks @jhawthorn, this is our last Rails 6 deprecation
This commit is contained in:
@@ -9,7 +9,7 @@ class MetadataController < ApplicationController
|
||||
end
|
||||
|
||||
def opensearch
|
||||
render file: "#{Rails.root}/app/views/metadata/opensearch.xml"
|
||||
render template: "metadata/opensearch.xml"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user