From cc1410fbb55d94659a4af95c5c7ef2481bd9d344 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 24 Jul 2021 19:06:42 +0100 Subject: [PATCH] Remove now unused decorator loading --- config/application.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config/application.rb b/config/application.rb index c4f609a4a4..175f191f45 100644 --- a/config/application.rb +++ b/config/application.rb @@ -34,14 +34,6 @@ end module Openfoodnetwork class Application < Rails::Application - - config.to_prepare do - # Load application's model / class decorators - Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| - Rails.configuration.cache_classes ? require(c) : load(c) - end - end - config.after_initialize do # We need this here because the test env file loads before the Spree engine is loaded Spree::Core::Engine.routes.default_url_options[:host] = 'test.host' if Rails.env == 'test'