123456789_123456789_123456789_123456789_123456789_

Module: ActionText::Encryption

Relationships & Source Files
Defined in: actiontext/lib/action_text/encryption.rb

Instance Method Summary

Instance Method Details

#decrypt

[ GitHub ]

  
# File 'actiontext/lib/action_text/encryption.rb', line 12

def decrypt
  transaction do
    super
    decrypt_rich_texts if has_encrypted_rich_texts?
  end
end

#encrypt

[ GitHub ]

  
# File 'actiontext/lib/action_text/encryption.rb', line 5

def encrypt
  transaction do
    super
    encrypt_rich_texts if has_encrypted_rich_texts?
  end
end