Skip to content

Commit

Permalink
[WIP] Switch autoloader to zeitwerk
Browse files Browse the repository at this point in the history
Add note about rails 6.1 defaults:
Disable defaults as ActiveRecord::Base.belongs_to_required_by_default = true
causes MiqRegion.seed to fail validation on belongs_to :maintenacne zone.
  • Loading branch information
jrafanie committed May 8, 2023
1 parent 27d2029 commit ac3497f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ class Application < Rails::Application

config.autoload_paths += config.eager_load_paths

config.autoloader = :zeitwerk
# config.load_defaults 6.1
# Disable defaults as ActiveRecord::Base.belongs_to_required_by_default = true causes MiqRegion.seed to fail validation on belongs_to :maintenacne zone

# NOTE: If you are going to make changes to autoload_paths, please make
# sure they are all strings. Rails will push these paths into the
# $LOAD_PATH.
Expand Down

0 comments on commit ac3497f

Please sign in to comment.