From 16ef060a766cc91f80250fcffc9a8ca073f828cf Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Fri, 3 May 2019 16:19:14 +1000 Subject: [PATCH] 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 --- app/controllers/metadata_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb index 299fc2d5b8f..8148b9c0fd0 100644 --- a/app/controllers/metadata_controller.rb +++ b/app/controllers/metadata_controller.rb @@ -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