- 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
symbolinstead ofstringfor:modeland:current_user:result['model']->result[:model] - Replace
Railway::Right/LeftwithTrailblazer::Activity::Right/Left - Add option
fast_track: truefor the steps that usespass_fast!orfail_fast!(check the new wiring API) - Nested macro now gets the all result object so use
:inputand:outputto filter data in/out
- new API using keyword arguments:
- Operations of different versions cannot be nested
- Rails controller's
runis for V2.0. Userun_v21for the migrated operations
The gem is available as open source under the terms of the MIT License.