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