Module: ActiveRecordEncryption
- Defined in:
- lib/active_record_encryption.rb,
lib/active_record_encryption/type.rb,
lib/active_record_encryption/quoter.rb,
lib/active_record_encryption/version.rb,
lib/active_record_encryption/encryptor.rb,
lib/active_record_encryption/exceptions.rb,
lib/active_record_encryption/encryptor/cipher.rb,
lib/active_record_encryption/encrypted_attribute.rb,
lib/active_record_encryption/testing/test_cipher.rb,
lib/active_record_encryption/serializer_with_cast.rb
Defined Under Namespace
Modules: EncryptedAttribute, Encryptor, SerializerWithCast, Testing Classes: Error, InvalidMessage, MissingCipherError, Quoter, Type
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.with_cipher(new_cipher) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/active_record_encryption.rb', line 18 def self.with_cipher(new_cipher) previous = cipher self.cipher = new_cipher yield ensure self.cipher = previous end |