Skip to content

Commit

Permalink
Update autoloader config for Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
avonderluft committed Feb 15, 2024
1 parent 1b7fbb9 commit d2e742b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class Application < Rails::Application
config.load_defaults Rails.version.scan(%r{^\d+\.\d+}).first.to_f

# Rails 7.1 compatibility - See config/initializers/new_framework_defaults_7_1.rb
config.add_autoload_paths_to_load_path = false

if Gem::Version.new(Rails.version) >= Gem::Version.new('7.1.0')
config.active_record.default_column_serializer = YAML
config.active_record.before_committed_on_all_records = false
Expand All @@ -31,6 +29,8 @@ class Application < Rails::Application
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w[generators])
config.autoloader = :classic
config.add_autoload_paths_to_load_path = false
end

# Making sure we don't load our dev routes as part of the engine
Expand Down

0 comments on commit d2e742b

Please sign in to comment.