encrypt()
Encrypts all the encryptable attributes and saves the changes.
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 166 def encrypt encrypt_attributes if has_encrypted_attributes? end