Skip to content

Commit 2a8475c

Browse files
Remove unnecessary splat operator
1 parent f0712f3 commit 2a8475c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/encryption/extended_deterministic_uniqueness_validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def validate_each(record, attribute, value)
1414
klass = record.class
1515
if klass.deterministic_encrypted_attributes&.include?(attribute)
1616
encrypted_type = klass.type_for_attribute(attribute)
17-
[ *encrypted_type.previous_types ].each do |type|
17+
encrypted_type.previous_types.each do |type|
1818
encrypted_value = type.serialize(value)
1919
ActiveRecord::Encryption.without_encryption do
2020
super(record, attribute, encrypted_value)

0 commit comments

Comments
 (0)