Fix deprecated syntax in old controller helper

This syntax for rendering a file isn't valid in Rails 6.x...
This commit is contained in:
Matt-Yorkley
2021-07-31 12:47:06 +01:00
parent 1b112961d1
commit 5725989343

View File

@@ -42,7 +42,7 @@ module Spree
respond_to do |type|
type.html {
render status: :not_found,
file: "#{::Rails.root}/public/404",
file: Rails.root.join("public/404.html"),
formats: [:html],
layout: nil
}