method
process_encrypted_query_arguments
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Encryption::ExtendedDeterministicQueries::EncryptedQueryArgumentProcessor
process_encrypted_query_arguments(args, check_for_additional_values)private
No documentation available.
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 45
def process_encrypted_query_arguments(args, check_for_additional_values)
if args.is_a?(Array) && (options = args.first).is_a?(Hash)
self.deterministic_encrypted_attributes&.each do |attribute_name|
type = type_for_attribute(attribute_name)
if !type.previous_types.empty? && value = options[attribute_name]
options[attribute_name] = process_encrypted_query_argument(value, check_for_additional_values, type)
end
end
end
end