Trailblazer in your Rails controllers.
This gem is slowly being superseded by TRB's
endpoint gem. Endpoints are "controller operations" that invoke your business logic operation. They are much easier to use and customize and are explained in part II of the BUILDALIB book.
trailblazer-rails helps you with the following.
- Running operations in your controller actions.
- Minimalistic integration tests ("smoke tests") to test controller/operation wiring.
- Rendering cells instead of an ActionView in a controller action.
Please refer to the full documentation for more.
Add this line to your application's Gemfile:
Note that the 2.x version only runs with TRB >= 2.1.0.
config.trailblazer.enable_loader = falseto disable Trailblazer loader (default TRUE)
config.trailblazer.enable_tracing = trueto enable tracing when using
The gem is available as open source under the terms of the MIT License.