instance method
encrypted?
Ruby on Rails 7.0.10
Since v7.0.10Signature
encrypted?(text)
Returns whether the text is encrypted or not
Parameters
-
textreq
Source
# File activerecord/lib/active_record/encryption/encryptor.rb, line 62
def encrypted?(text)
deserialize_message(text)
true
rescue Errors::Encoding, *DECRYPT_ERRORS
false
end
Defined in activerecord/lib/active_record/encryption/encryptor.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Encryption::Encryptor