lib/dirty_pipeline/transition.rb in dirty_pipeline-0.6.4 vs lib/dirty_pipeline/transition.rb in dirty_pipeline-0.7.0
- old
+ new
@@ -12,9 +12,10 @@
when "finalize"
railway&.switch_to(:call)
end
throw :success, changes.to_h
end
+
def self.finalize(*args, **kwargs)
event, pipeline, *args = args
instance = new(event, pipeline.railway, *args, **kwargs)
return unless instance.respond_to?(:finalize)
instance.finalize(pipeline.subject)