Skip to content

save audited_changes with data on destroy #8

@mchapman17

Description

@mchapman17

I'm not sure if this is by design, but currently when I have audit(:destroy) on a model, it adds the record to the Audit table however the audited_changes field is nil. Would it be possible make it behave similar to :create? So it would have "name=>['Company Name', nil]" in the audited_changes field, similar to how it has "name=>[nil, 'Company Name']" for :create.

Thanks,
Michael

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