Module: ActiveRecord::Encryption::ExtendedDeterministicQueries::RelationQueries
- Includes:
- EncryptedQueryArgumentProcessor
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb
Instance Method Summary
collapse
#append_features, #class_methods, extended, #included, #prepend_features, #prepended
Instance Method Details
#exists?(*args) ⇒ Boolean
89
90
91
92
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 89
def exists?(*args)
process_encrypted_query_arguments_if_needed(args)
super
end
|
#find_or_create_by(attributes, &block) ⇒ Object
94
95
96
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 94
def find_or_create_by(attributes, &block)
find_by(attributes.dup) || create(attributes, &block)
end
|
#find_or_create_by!(attributes, &block) ⇒ Object
98
99
100
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 98
def find_or_create_by!(attributes, &block)
find_by(attributes.dup) || create!(attributes, &block)
end
|
#where(*args) ⇒ Object
84
85
86
87
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/encryption/extended_deterministic_queries.rb', line 84
def where(*args)
process_encrypted_query_arguments_if_needed(args)
super
end
|