From 1ca52b74464ba0b08cd55765337ef7eec6b30a48 Mon Sep 17 00:00:00 2001 From: wetoolaguer Date: Fri, 7 Jun 2019 11:26:20 +0800 Subject: [PATCH] Adds caveat to allow_empty_value option usage --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d5b6a132..a15f455c 100644 --- a/README.md +++ b/README.md @@ -328,6 +328,12 @@ You may want to encrypt empty strings or nil so as to not reveal which records a end ``` +**Caveat:** The default encryptor doesn't support this option. Doing so will throw an error: +``` +ArgumentError: data must not be empty +``` + +Make sure that your encryptor supports encryption of empty values when setting this to true. ## ORMs