module ActiveRecord::Encryption::EncryptableRecord

def encrypted_attribute?(attribute_name)

Returns whether a given attribute is encrypted or not.
def encrypted_attribute?(attribute_name)
  ActiveRecord::Encryption.encryptor.encrypted? ciphertext_for(attribute_name)
end