Class: ActiveRecordEncryption::Encryptor::Raw

Inherits:
Base
  • Object
show all
Defined in:
lib/active_record_encryption/encryptor/raw.rb

Overview

Basic base class of encryptor. Format user input to string before encryption.

Direct Known Subclasses

ActiveSupport, Aes256Cbc

Instance Method Summary collapse

Methods inherited from Base

#==, #decrypt, #initialize

Constructor Details

This class inherits a constructor from ActiveRecordEncryption::Encryptor::Base

Instance Method Details

#encrypt(value) ⇒ Object



8
9
10
# File 'lib/active_record_encryption/encryptor/raw.rb', line 8

def encrypt(value)
  ActiveRecordEncryption::Quoter.instance.type_cast(super)
end