Sha256: 8f251acb0eb4e9e6bd072c8b6c9a4c1c2c6ac8e5a9fa681f947d07856c28cab7

Contents?: true

Size: 466 Bytes

Versions: 11

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Trailblazer
  class Finder
    module Activities
      class ProcessSorting < Trailblazer::Activity::Railway
        def set_sorting_handler(ctx, **)
          return true if ctx[:sorting].nil?

          ctx[:sorting][:handler] = Utils::Extra.apply_handler(
            (Object.const_get(ctx[:orm][:sorting]).__send__ :set_sorting_handler)
          )
        end

        step :set_sorting_handler
      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_sorting.rb
trailblazer-finder-0.100.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.92.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.91.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.90.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.80.1 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.70.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.50.0 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.10.3 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.10.2 lib/trailblazer/finder/activities/process_sorting.rb
trailblazer-finder-0.10.1 lib/trailblazer/finder/activities/process_sorting.rb