If I secure an attribute and then try to create an object that has a value of nil or "" for that attribute, I get an error, because Fernet does not support encrypting those values. I'm not sure what the right solution is--sometimes the fact that the value is empty or nil can be an information leak in itself--but it'd be great if attr_secure could work with all (reasonable) attribute values.
If I secure an attribute and then try to create an object that has a value of
nil
or""
for that attribute, I get an error, because Fernet does not support encrypting those values. I'm not sure what the right solution is--sometimes the fact that the value is empty or nil can be an information leak in itself--but it'd be great ifattr_secure
could work with all (reasonable) attribute values.