From 4b19aeadc6f6aedfb60eda9d2435eef4850ae18c Mon Sep 17 00:00:00 2001 From: Fox Date: Mon, 12 Mar 2018 10:18:11 +0300 Subject: [PATCH] Model map has been stored in the class variable --- spec/sequel/plugins/bulk_audit_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/sequel/plugins/bulk_audit_spec.rb b/spec/sequel/plugins/bulk_audit_spec.rb index e0ed7a9..b54d1cd 100644 --- a/spec/sequel/plugins/bulk_audit_spec.rb +++ b/spec/sequel/plugins/bulk_audit_spec.rb @@ -111,6 +111,7 @@ class MyData < Sequel::Model(:data) plugin :polymorphic one_to_many :audit_logs, as: :model end + MyData.class_variable_set(:@@model_to_table_map, nil) rec = nil model.with_current_user(current_user) do rec = MyData.create(value: 5)