Skip to content

Commit

Permalink
fixed issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox committed Mar 12, 2018
1 parent a634bc1 commit 01a4dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/plugins/bulk_audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.apply(model, opts={})

module SharedMethods
def model_to_table_map
@model_to_table_map ||= ObjectSpace.each_object(Class).select do |klazz|
@@model_to_table_map ||= ObjectSpace.each_object(Class).select do |klazz|
next if klazz.name.nil?
klazz < Sequel::Model && klazz&.plugins&.include?(Sequel::Plugins::BulkAudit)
end.map { |c| [c, c.table_name] }.to_h.invert
Expand Down

0 comments on commit 01a4dc3

Please sign in to comment.