auditor icon indicating copy to clipboard operation
auditor copied to clipboard

save audited_changes with data on destroy

Open mchapman17 opened this issue 13 years ago • 0 comments

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

mchapman17 avatar Jul 04 '12 04:07 mchapman17