drop extra key

pull/639/head
Bob Develop 2 weeks ago
parent f7a35364d1
commit 4aef3a0d8f

@ -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])

Loading…
Cancel
Save