Skip to content

Commit

Permalink
instance
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Oct 26, 2023
1 parent 300a8b5 commit 79574d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/auditor/model/audit/destroyed_audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79574d5

Please sign in to comment.