From 2ed967cce45d8a2ed1b9e9e9ead7c5da17010196 Mon Sep 17 00:00:00 2001 From: Stephen <519327+stevieing@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:24:23 +0100 Subject: [PATCH] chore: Update autoload and eager load paths for presenters --- config/application.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index d1407928..e0e77836 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,12 +22,12 @@ class Application < Rails::Application config.load_defaults 7.0 - config.mailer = YAML.load_file("#{Rails.root}/config/mailer.yml")[Rails.env] + config.mailer = YAML.load_file(Rails.root.join('config/mailer.yml').to_s)[Rails.env] config.autoload_paths += %W[#{config.root}/lib/utils] config.disable_animations = false - config.autoload_paths += %W[#{Rails.root}/app/presenters] - config.eager_load_paths += %W[#{Rails.root}/app/presenters] + config.autoload_paths += %W[#{Rails.root.join('app/presenters')}] + config.eager_load_paths += %W[#{Rails.root.join('app/presenters')}] # Enabling the behaviour where 'belongs_to' associations are required by default. # (https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-belongs-to-required-by-default-option)