instance method
encrypt
Ruby on Rails 8.1.2
Since v7.0.10Signature
encrypt()
Encrypts all the encryptable attributes and saves the changes.
Source
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 166
def encrypt
encrypt_attributes if has_encrypted_attributes?
end
Defined in activerecord/lib/active_record/encryption/encryptable_record.rb line 166
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::EncryptableRecord