Skip to content

Commit

Permalink
Model map has been stored in the class variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox committed Mar 12, 2018
1 parent 01a4dc3 commit 4b19aea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/sequel/plugins/bulk_audit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4b19aea

Please sign in to comment.