Skip to content

Commit

Permalink
Fix AccreditingProviderEnrichment to be Rails 8-compatible.
Browse files Browse the repository at this point in the history
Rails 8 added a new attribute that AccreditingProviderEnrichment now needs to ignore
context_for_validation.
  • Loading branch information
gms-gs committed Dec 2, 2024
1 parent 1f6a49f commit b34e6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/accrediting_provider_enrichment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b34e6fb

Please sign in to comment.