67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/convenient_service/service/plugins/can_have_around_step_callbacks/middleware.rb', line 67
def next(method, **kwargs, &block)
return chain.next(method, **kwargs, &block) if method != :step
entity.step_class.class_exec(kwargs, block) do |kwargs, block|
around :result, **kwargs.merge(source_location: block.source_location) do |chain|
organizer.instance_exec(
proc { chain.yield.step },
Support::Arguments.new(
*args,
**Utils::Hash.except(self.kwargs, [:organizer, :container])
),
&block
)
end
end
end
|