Merge pull request #7184 from Matt-Yorkley/deprecation-errors-set

Update deprecated errors.set syntax
This commit is contained in:
Matt-Yorkley
2021-03-24 13:17:55 +01:00
committed by GitHub

View File

@@ -35,7 +35,7 @@ module Spree
return unless Spree::Config.enable_localized_number?
@invalid_localized_number.andand.each do |error_attribute|
errors.set(error_attribute, [I18n.t('spree.localized_number.invalid_format')])
errors.add(error_attribute, I18n.t('spree.localized_number.invalid_format'))
end
end
end