diff --git a/lib/trailblazer/finder/activities/prepare_entity.rb b/lib/trailblazer/finder/activities/prepare_entity.rb index a39a170..117faa1 100644 --- a/lib/trailblazer/finder/activities/prepare_entity.rb +++ b/lib/trailblazer/finder/activities/prepare_entity.rb @@ -17,7 +17,7 @@ def set_entity(ctx, config:, **) end step :validate_entity - fail :invalid_entity_error + left :invalid_entity_error step :set_entity end end diff --git a/lib/trailblazer/finder/activities/prepare_filters.rb b/lib/trailblazer/finder/activities/prepare_filters.rb index 74308cf..75a4dfb 100644 --- a/lib/trailblazer/finder/activities/prepare_filters.rb +++ b/lib/trailblazer/finder/activities/prepare_filters.rb @@ -21,7 +21,7 @@ def set_filters(ctx, config:, **) end step :validate_filters - fail :invalid_filters_error + left :invalid_filters_error step :set_filters end end diff --git a/lib/trailblazer/finder/activities/prepare_params.rb b/lib/trailblazer/finder/activities/prepare_params.rb index e76bec7..58f7502 100644 --- a/lib/trailblazer/finder/activities/prepare_params.rb +++ b/lib/trailblazer/finder/activities/prepare_params.rb @@ -19,7 +19,7 @@ def set_params(ctx, **) end step :validate_params - fail :invalid_params_error + left :invalid_params_error step :set_params end end diff --git a/lib/trailblazer/finder/activities/prepare_properties.rb b/lib/trailblazer/finder/activities/prepare_properties.rb index 8d5f5be..103ccaf 100644 --- a/lib/trailblazer/finder/activities/prepare_properties.rb +++ b/lib/trailblazer/finder/activities/prepare_properties.rb @@ -32,7 +32,7 @@ def set_properties(ctx, config:, **) step :check_property_types step :validate_property_types - fail :invalid_properties_error + left :invalid_properties_error step :set_properties end end diff --git a/lib/trailblazer/finder/activities/process_adapters.rb b/lib/trailblazer/finder/activities/process_adapters.rb index 7e790ad..a0b00db 100644 --- a/lib/trailblazer/finder/activities/process_adapters.rb +++ b/lib/trailblazer/finder/activities/process_adapters.rb @@ -37,7 +37,7 @@ def invalid_paginator_handler(_e, (ctx, _flow_options), **) step :set_adapter, fast_track: true step Rescue(Dry::Types::ConstraintError, handler: :invalid_paginator_handler) { step :set_paginator - fail :invalid_paginator_error + left :invalid_paginator_error } end end diff --git a/trailblazer-finder.gemspec b/trailblazer-finder.gemspec index e0b06f0..7247cc6 100644 --- a/trailblazer-finder.gemspec +++ b/trailblazer-finder.gemspec @@ -20,6 +20,7 @@ Gem::Specification.new do |spec| spec.add_dependency "dry-types", ">= 1.0.0" spec.add_dependency "trailblazer-macro", ">= 2.1.15" spec.add_dependency "trailblazer-activity", ">= 0.13.0" + spec.add_dependency "trailblazer-activity-dsl-linear", ">= 1.2.5" spec.add_dependency "zeitwerk", ">= 2.6.0" spec.add_development_dependency "activerecord"