Sha256: 8e84731f0a6b65bbb7d55435c95b8a3fb3e383d386acd2e96e23dca4b9dd5f95

Contents?: true

Size: 885 Bytes

Versions: 3

Compression:

Stored size: 885 Bytes

Contents

# frozen_string_literal: true

require_relative "prepare_adapters"
require_relative "prepare_entity"
require_relative "prepare_properties"
require_relative "prepare_filters"
require_relative "prepare_params"
require_relative "prepare_paging"
require_relative "prepare_sorting"

module Trailblazer
  class Finder
    module Activities
      # Prepare Activity
      class Prepare < Trailblazer::Activity::Railway
        def clean_ctx((ctx, flow_options), **)
          ctx.delete(:options)
          [Activity::Right, [ctx, flow_options]]
        end

        step Subprocess(PrepareAdapters)
        step Subprocess(PrepareEntity)
        step Subprocess(PrepareProperties)
        step Subprocess(PrepareFilters)
        step Subprocess(PrepareParams)
        step Subprocess(PreparePaging)
        step Subprocess(PrepareSorting)
        step :clean_ctx
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trailblazer-finder-0.10.3 lib/trailblazer/finder/activities/prepare.rb
trailblazer-finder-0.10.2 lib/trailblazer/finder/activities/prepare.rb
trailblazer-finder-0.10.1 lib/trailblazer/finder/activities/prepare.rb