Skip to content

Commit a731e5e

Browse files
Merge pull request rails#46813 from ezekg/fix-unencrypted-joins-for-deterministic-active-record-encryption-follow-up
Fix rails#46789
2 parents 663e8e1 + 9c33fa1 commit a731e5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/lib/active_record/encryption/extended_deterministic_queries.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ def process_arguments(owner, args, check_for_additional_values)
4848
args[0] = options
4949

5050
owner.deterministic_encrypted_attributes&.each do |attribute_name|
51+
attribute_name = attribute_name.to_s
5152
type = owner.type_for_attribute(attribute_name)
52-
if !type.previous_types.empty? && value = options[attribute_name.to_s]
53+
if !type.previous_types.empty? && value = options[attribute_name]
5354
options[attribute_name] = process_encrypted_query_argument(value, check_for_additional_values, type)
5455
end
5556
end

0 commit comments

Comments
 (0)