mirror of https://github.com/rails/rails
Remove unnecessary if in ExtendedDeterministicUniquenessValidator
This commit is contained in:
parent
1e250e6ee2
commit
7600f6af1d
|
@ -12,7 +12,7 @@ module ActiveRecord
|
|||
super(record, attribute, value)
|
||||
|
||||
klass = record.class
|
||||
if klass.deterministic_encrypted_attributes&.each do |attribute_name|
|
||||
klass.deterministic_encrypted_attributes&.each do |attribute_name|
|
||||
encrypted_type = klass.type_for_attribute(attribute_name)
|
||||
[ encrypted_type, *encrypted_type.previous_types ].each do |type|
|
||||
encrypted_value = type.serialize(value)
|
||||
|
@ -21,7 +21,6 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue