Skip to content

iv is updated when the attribute's value hasn't changed #216

@moliver-hemasystems

Description

@moliver-hemasystems

I've run into an issue where a user submits a form without updating any fields, even though the value we encrypt isn't changing when we pass it into assign_attributes or update_attributes, the iv is still updated.

Normally, I wouldn't consider that a problem, except that because the iv gets updated, the updated_at timestamp is updated and our record auditing gem records a new audit, leading the users to think something changed on the record even though nothing has.

We're using version 3.0.1 of the gem and version 4.2.6 of Rails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions