lib/validators/phone_validator.rb in phonelib-0.6.54 vs lib/validators/phone_validator.rb in phonelib-0.6.55

- old
+ new

@@ -60,10 +60,10 @@ return if options[:allow_blank] && value.blank? @phone = parse(value, specified_country(record)) valid = phone_valid? && valid_types? && valid_country? && valid_extensions? - record.errors.add(attribute, message, options) unless valid + record.errors.add(attribute, message, **options) unless valid end private def message