Skip to Content Skip to Search
v7.1.0
module ActiveRecord::Encryption::ExtendedDeterministicQueries::InWithAdditionalValues
Methods
E
P

Public instance methods

encryption_aware_type_caster()

Permalink
Source code GitHub
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 162
def encryption_aware_type_caster
  if attribute.type_caster.is_a?(ActiveRecord::Encryption::EncryptedAttributeType)
    attribute.type_caster.cast_type
  else
    attribute.type_caster
  end
end

proc_for_binds()

Permalink
Source code GitHub
# File activerecord/lib/active_record/encryption/extended_deterministic_queries.rb, line 158
def proc_for_binds
  -> value { ActiveModel::Attribute.with_cast_value(attribute.name, value, encryption_aware_type_caster) }
end
Definition files