You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation of dry-transaction sectionCustom step adapters there is a code snippet:
QUEUE=[]classMyStepAdapters < Dry::Transaction::StepAdaptersregister:enqueue,->step,input, *args{# In a real app, this would push the operation into a background worker queueQUEUE << step.operation.call(input, *args)Dry::Monads.Success(input)}end
However actual interface is different.
To Reproduce
Expected behavior
Code snippet in documentation needs to be updated to something like:
QUEUE=[]classMyStepAdapters < Dry::Transaction::StepAdaptersregister:enqueue,->(operation,_options,args){# In a real app, this would push the operation into a background worker queueQUEUE << operation.call(*args))Dry::Monads.Success(input)}end
Also text describing interface (#call(step, input, *args)) needs to be updated accordingly.
Your environment
Affects my production application: NO
Ruby version: 2.6.3
OS: Linux/5.3.8-gentoo
The text was updated successfully, but these errors were encountered:
Describe the bug
In the documentation of
dry-transaction section
Custom step adapters
there is a code snippet:However actual interface is different.
To Reproduce
Expected behavior
Code snippet in documentation needs to be updated to something like:
Also text describing interface (
#call(step, input, *args)
) needs to be updated accordingly.Your environment
The text was updated successfully, but these errors were encountered: