Sha256: 24951b9882af5d6dd1f49d45dd329838493b12752c83e5e5f4caa446b9d63938

Contents?: true

Size: 542 Bytes

Versions: 11

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

module Trailblazer
  class Finder
    module Activities
      class ProcessFilters < Trailblazer::Activity::Railway
        def set_filter_handlers(ctx, **)
          return true unless ctx[:process]

          ctx[:process].each do |key, value|
            next if ctx[:process][key][:filter].nil?

            ctx[:process][key][:handler] = Utils::Extra.apply_handler(value[:filter] ? value[:filter][:handler] : "none")
          end
        end

        step :set_filter_handlers
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trailblazer-finder-0.200.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.100.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.92.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.91.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.90.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.80.1 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.70.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.50.0 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.10.3 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.10.2 lib/trailblazer/finder/activities/process_filters.rb
trailblazer-finder-0.10.1 lib/trailblazer/finder/activities/process_filters.rb