Update bundle (with newest rubocop version) and fix offenses
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user