Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox committed May 14, 2018
1 parent 4b19aea commit f0618d0
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 @@ -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)
Expand Down

0 comments on commit f0618d0

Please sign in to comment.