mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user