Skip to content

Does not work with nil or empty string values #16

@msakrejda

Description

@msakrejda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions