Class: Authn::TokenField::Finders::BaseEncryptedPartitioned
- Inherits:
-
BaseEncrypted
- Object
- BaseEncrypted
- Authn::TokenField::Finders::BaseEncryptedPartitioned
- Defined in:
- lib/authn/token_field/finders/base_encrypted_partitioned.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BaseEncrypted
Constructor Details
This class inherits a constructor from Authn::TokenField::Finders::BaseEncrypted
Instance Method Details
#execute ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/authn/token_field/finders/base_encrypted_partitioned.rb', line 7 def execute if partition_key.present? record = partition_scope.find_by(encrypted_field => tokens) # rubocop:disable CodeReuse/ActiveRecord -- have to use find_by return record if record end base_scope.find_by(encrypted_field => tokens) # rubocop:disable CodeReuse/ActiveRecord -- have to use find_by end |