lib/dirty_pipeline/event.rb in dirty_pipeline-0.7.0 vs lib/dirty_pipeline/event.rb in dirty_pipeline-0.7.1

- old
+ new

@@ -7,10 +7,11 @@ FAILURE = "failed".freeze ABORT = "aborted".freeze RETRY = "retry".freeze SUCCESS = "succeeded".freeze - def self.create(transition, *args, tx_id:) + def self.create(transition, *args, tx_id:, **kwargs) + args << kwargs unless kwargs.empty? new( data: { # FIXME: SecureRandom "uuid" => SecureRandom.uuid, "transaction_uuid" => tx_id,