instance method decrypt

Ruby on Rails 8.1.2

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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

Type at least 2 characters to search.

↑↓ navigate · open · esc close