Skip to content

Commit

Permalink
Prefer ActiveModel::Errors#add over <<
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed Jan 26, 2022
1 parent 7e807a5 commit 0389672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/waste_carriers_engine/base_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def transient_registration_valid?
return if transient_registration.valid?

transient_registration.errors.each do |_attribute, message|
errors[:base] << message
errors.add(:base, message)
end
end

Expand Down

0 comments on commit 0389672

Please sign in to comment.