lib/grumlin/traversal_start.rb in grumlin-0.22.5 vs lib/grumlin/traversal_start.rb in grumlin-0.23.0
- old
+ new
@@ -8,10 +8,10 @@
class AlreadyBoundToTransactionError < TraversalError; end
def tx
raise AlreadyBoundToTransactionError if @session_id
- transaction = tx_class.new(self.class, pool: @pool)
+ transaction = tx_class.new(self.class, pool: @pool, middlewares: @middlewares)
return transaction unless block_given?
begin
yield transaction.begin
rescue Grumlin::Rollback