From f0618d025377e00cf7dfeebad8e2e9a0f58e27db Mon Sep 17 00:00:00 2001 From: Fox Date: Mon, 14 May 2018 17:47:23 +0300 Subject: [PATCH] fixed --- lib/sequel/plugins/bulk_audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sequel/plugins/bulk_audit.rb b/lib/sequel/plugins/bulk_audit.rb index 8c8f122..7f00f48 100644 --- a/lib/sequel/plugins/bulk_audit.rb +++ b/lib/sequel/plugins/bulk_audit.rb @@ -15,7 +15,7 @@ def model_to_table_map @@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 + end.map { |c| [c.to_s, c.table_name] }.to_h.invert end def with_current_user(current_user, attributes = nil)