Sha256: e4a769dc693d7a03c190fa18377960375df7694485ddac3a496b201224fd17d3

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Step
            module Plugins
              module CanHaveParentResult
                class Middleware < Core::MethodChainMiddleware
                  def next(...)
                    chain.next(...).copy(overrides: {kwargs: {parent: entity.original_result}})
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb