Update bundle (with newest rubocop version) and fix offenses

This commit is contained in:
Sebastian Serth
2022-01-03 18:11:17 +01:00
parent 57e32611ed
commit ea85519163
93 changed files with 968 additions and 985 deletions

View File

@ -8,7 +8,7 @@ module ActiveModel
def validate(record)
[attributes].flatten.each do |attribute|
value = record.send(:read_attribute_for_validation, attribute)
record.errors.add(attribute, nil, options) unless BOOLEAN_VALUES.include?(value)
record.errors.add(attribute, nil, **options) unless BOOLEAN_VALUES.include?(value)
end
end
end