diff --git a/app/models/auditor/model/audit/destroyed_audit.rb b/app/models/auditor/model/audit/destroyed_audit.rb index 7430fa8..97cc3d5 100644 --- a/app/models/auditor/model/audit/destroyed_audit.rb +++ b/app/models/auditor/model/audit/destroyed_audit.rb @@ -9,7 +9,8 @@ module Model::Audit::DestroyedAudit end def record - audited_type.constantize.new audited_changes + return @record if defined? @record + @record = audited_type.constantize.new audited_changes end end