Method: ActiveRecord::Encryption::EncryptableRecord#encrypt
- Defined in:
- activerecord/lib/active_record/encryption/encryptable_record.rb
#encrypt ⇒ Object
Encrypts all the encryptable attributes and saves the changes.
166 167 168 |
# File 'activerecord/lib/active_record/encryption/encryptable_record.rb', line 166 def encrypt encrypt_attributes if has_encrypted_attributes? end |