Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox committed Jun 8, 2018
1 parent 5f0e754 commit 8edce11
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 @@ -25,7 +25,7 @@ def with_current_user(current_user, attributes = nil)
Sequel.cast(current_user&.login || "unspecified", :text).as(:username),
Sequel.pg_jsonb(model_to_table_map).as(:model_map),
Sequel.pg_jsonb(attributes || {}).as(:data))
self.db.create_table!(:"__audit_info_#{trid}", temp: true, as: data)
self.db.create_table?(:"__audit_info_#{trid}", temp: true, as: data)
result = yield if block_given?
self.db.drop_table?(:"__audit_info_#{trid}")
result
Expand Down

0 comments on commit 8edce11

Please sign in to comment.