Sha256: 82db24678c7cb57f761d4c8602ce4dca994d610e29230c48fd786d05398002ce

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module Trailblazer
  class Finder
    module Activity
      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

1 entries across 1 versions & 1 rubygems

Version Path
trailblazer-finder-0.10.0 lib/trailblazer/finder/activity/process_sorting.rb