Class: ConvenientService::Service::Plugins::CanHaveSequentialSteps::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::CanHaveSequentialSteps::Middleware
- Defined in:
- lib/convenient_service/service/plugins/can_have_sequential_steps/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step
13 14 15 16 17 |
# File 'lib/convenient_service/service/plugins/can_have_sequential_steps/middleware.rb', line 13 def next(...) return chain.next(...) if entity.steps.none? last_completed_step.result end |