From b8e8ab15d18201aa19cc5f6d7fa6381ba490b057 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 12 Aug 2025 11:06:33 +1000 Subject: [PATCH] Update environment config with Rails 7.0 default --- config/environment.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/environment.rb b/config/environment.rb index f3522b8759..09cdd795d0 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,7 +1,7 @@ -# Load the rails application -require_relative 'application' +# Load the Rails application. +require_relative "application" -# Initialize the rails application -Openfoodnetwork::Application.initialize! +# Initialize the Rails application. +Rails.application.initialize! ActiveRecord::Base.include_root_in_json = true