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:
parent
1815409a6f
commit
16ef060a76
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue