- Step 1
Update trailblazer
to it latest patch version ~> 2.0.7
- Step 2
Test your build and remove any deprecation warning
- Optional step (recommended)
Feed a homeless person
- Step 3
Add this line to your application's Gemfile:
gem 'trailblazer-future'
- Inherit operation from
Trailblazer::V2_1::Operation
class MyOP < Trailblazer::V2_1::Operation
end
- Migrate to TRB 2.1 following the migration path, here a quick summary of the breaking changes:
- new API using keyword arguments:
MyOP.(params)
->MyOp.(params: params)
(more here) - using
symbol
instead ofstring
for:model
and:current_user
:result['model']
->result[:model]
- Replace
Railway::Right/Left
withTrailblazer::Activity::Right/Left
- Add option
fast_track: true
for the steps that usespass_fast!
orfail_fast!
(check the new wiring API) - Nested macro now gets the all result object so use
:input
and:output
to filter data in/out
- new API using keyword arguments:
- Operations of different versions cannot be nested
- Rails controller's
run
is for V2.0. Userun_v21
for the migrated operations
The gem is available as open source under the terms of the MIT License.