Skip to content

Commit

Permalink
chore: Update autoload and eager load paths for presenters
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieing committed Jul 23, 2024
1 parent a491413 commit 2ed967c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ed967c

Please sign in to comment.