Class: ConvenientService::Service::Plugins::SetsParentToForeignResult::Middleware Private
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::SetsParentToForeignResult::Middleware
- Defined in:
- lib/convenient_service/service/plugins/sets_parent_to_foreign_result/middleware.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#next ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
50 51 52 53 54 55 56 |
# File 'lib/convenient_service/service/plugins/sets_parent_to_foreign_result/middleware.rb', line 50 def next(...) result = chain.next(...) return result unless result.foreign_result_for?(entity) result.copy(overrides: {kwargs: {service: entity, step: nil, parent: result}}) end |