diff --git a/app/controllers/audit_log/logs_controller.rb b/app/controllers/audit_log/logs_controller.rb index 6517ab0..9f085e2 100644 --- a/app/controllers/audit_log/logs_controller.rb +++ b/app/controllers/audit_log/logs_controller.rb @@ -16,6 +16,11 @@ def index def show; end + def destroy + @log.destroy + redirect_to logs_path, notice: "Audit log deleted." + end + private # Use callbacks to share common setup or constraints between actions.