Sha256: 82711a67dea276c9fa7135db4ed6497fac6beec04d236b3f390c8024d5f6ddf7

Contents?: true

Size: 462 Bytes

Versions: 15

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module CachesConstructorParams
        class Middleware < Core::MethodChainMiddleware
          def next(*args, **kwargs, &block)
            entity.internals.cache[:constructor_params] = Entities::ConstructorParams.new(args: args, kwargs: kwargs, block: block)

            chain.next(*args, **kwargs, &block)
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.11.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.10.1 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.10.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.9.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.8.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.7.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.6.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.5.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.4.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.3.1 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.3.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.2.1 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.2.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb
convenient_service-0.1.0 lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb