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