From b34e6fbcc2e07d81af97198fdaede75c4abecb5a Mon Sep 17 00:00:00 2001 From: gms-gs Date: Mon, 2 Dec 2024 14:14:07 +0000 Subject: [PATCH] Fix AccreditingProviderEnrichment to be Rails 8-compatible. Rails 8 added a new attribute that AccreditingProviderEnrichment now needs to ignore context_for_validation. --- app/models/accrediting_provider_enrichment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/accrediting_provider_enrichment.rb b/app/models/accrediting_provider_enrichment.rb index 4962e4b6bb..932958d7cb 100644 --- a/app/models/accrediting_provider_enrichment.rb +++ b/app/models/accrediting_provider_enrichment.rb @@ -10,7 +10,7 @@ class AccreditingProviderEnrichment validates :Description, words_count: { maximum: 100 } def initialize(attrs) - attrs.each do |attr, value| + attrs.except('context_for_validation').each do |attr, value| send("#{attr}=", value) unless attr == 'errors' end end