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:
Sam Saffron 2019-05-03 16:19:14 +10:00
parent 1815409a6f
commit 16ef060a76
1 changed files with 1 additions and 1 deletions

View File

@ -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