Module: ActionMosaico::Encryption

Defined in:
lib/action_mosaico/encryption.rb

Instance Method Summary collapse

Instance Method Details

#decryptObject



12
13
14
15
16
17
# File 'lib/action_mosaico/encryption.rb', line 12

def decrypt
  transaction do
    super
    decrypt_rich_texts if has_encrypted_rich_texts?
  end
end

#encryptObject



5
6
7
8
9
10
# File 'lib/action_mosaico/encryption.rb', line 5

def encrypt
  transaction do
    super
    encrypt_rich_texts if has_encrypted_rich_texts?
  end
end