encrypted?(text)
Returns whether the text is encrypted or not.
# File activerecord/lib/active_record/encryption/encryptor.rb, line 71 def encrypted?(text) deserialize_message(text) true rescue Errors::Encoding, *DECRYPT_ERRORS false end