Sha256: cbbeeb770080f17579b23f73ced0b1c05a737c75b8245ca07b49e0df1b9835f6

Contents?: true

Size: 916 Bytes

Versions: 4

Compression:

Stored size: 916 Bytes

Contents

# frozen_string_literal: true

module Trailblazer
  class Finder
    module Activity
      # Prepare Activity
      module Prepare
        extend Trailblazer::Activity::Railway()

        module_function

        def clean_ctx((ctx, flow_options), **)
          # ctx.delete(:config)
          ctx.delete(:options)
          [Trailblazer::Activity::Right, [ctx, flow_options]]
        end

        step Subprocess(Prepare::Adapters), id: :prepare_adapters
        step Subprocess(Prepare::Entity), id: :prepare_entity
        step Subprocess(Prepare::Properties), id: :prepare_properties
        step Subprocess(Prepare::Filters), id: :prepare_filters
        step Subprocess(Prepare::Params), id: :prepare_params
        step Subprocess(Prepare::Paging), id: :prepare_paging
        step Subprocess(Prepare::Sorting), id: :prepare_sorting
        step method(:clean_ctx), id: :clean_ctx
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trailblazer-finder-0.3.0 lib/trailblazer/finder/activity/prepare.rb
trailblazer-finder-0.2.7 lib/trailblazer/finder/activity/prepare.rb
trailblazer-finder-0.2.6 lib/trailblazer/finder/activity/prepare.rb
trailblazer-finder-0.2.5 lib/trailblazer/finder/activity/prepare.rb