From 4aef3a0d8f4d70a081824eda9da81e9350566bbc Mon Sep 17 00:00:00 2001 From: Bob Develop Date: Fri, 24 Apr 2026 10:19:22 -0400 Subject: [PATCH] drop extra key --- config/application.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/application.rb b/config/application.rb index e7e68e11..cc1acb79 100644 --- a/config/application.rb +++ b/config/application.rb @@ -19,10 +19,14 @@ module DocuSeal class Application < Rails::Application config.load_defaults 8.1 - # Rails 8.1.3 removed the has_many_inversing= setter on ActiveRecord::Base - # (the feature is now permanently enabled), but load_defaults still sets it - # via the 7.0 framework defaults, causing NoMethodError at boot. - config.active_record.delete(:has_many_inversing) if config.active_record.respond_to?(:delete) + # Rails 8.1.3 removed several ActiveRecord::Base= setters (the features are now + # permanently enabled), but load_defaults still sets them via older framework + # defaults, causing NoMethodError at boot. Drop them from config.active_record + # so the railtie does not attempt to assign them on AR::Base. + if config.active_record.respond_to?(:delete) + config.active_record.delete(:has_many_inversing) + config.active_record.delete(:belongs_to_required_by_default) + end config.autoload_lib(ignore: %w[assets tasks puma])