Skip to content

Commit

Permalink
Update to configuration defaults for Rails 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Dec 20, 2024
1 parent c9eb361 commit 424694b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 144 deletions.
4 changes: 1 addition & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ class Application < Rails::Application
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
config.load_defaults 6.1
config.load_defaults 7.0
config.autoloader = :zeitwerk

# Enable new framework defaults configurations for later Rails versions
# preventing deprecation warnings
config.active_record.legacy_connection_handling = false # 7.0
config.active_support.use_rfc4122_namespaced_uuids = true # 7.0
config.active_storage.replace_on_assign_to_many = true # 7.1

# Disable new framework default has_many_inversing breaks some specs due to
Expand Down
141 changes: 0 additions & 141 deletions config/initializers/new_framework_defaults_7_0.rb

This file was deleted.

0 comments on commit 424694b

Please sign in to comment.