- Remove a deprecation warning when tracing.
- Allow calling
#cell
without providingmodel
, complying to cells-rails'#cell
interface.
- Fix a bug where
Controller#run
wouldn't return the ctx.
- Pass keyword arguments to the success result block.
- Remove legacy code belonging to the old
trailblazer-loader
gem. - Use ActionController::API in addition to ActionController::Base to add the
run
method.
- Remove loader support (no longer needed as zeitwerk is now a better alternative)
- Allow passing ctx variables to
Controller#run
. - Introduce
Controller#options_for_cell
to customize cell options such as:layout
on the controller level.
- Drop support for Rails < 5.2
- Add Test for Rails 6.1
- Bug: Deprecation warning for use_loader always called (fixed)
- Run rubocop in travis only for ruby 2.5
- Dependency for
railties
>= 4.0.0 - Config flag use_loader renamed with enable_loader
- Add dependency
railties
>= 5.0.7 - rename
run
torun_v21
and alias it torun
only if it not already defined
- Remove Gemfile.lock in the test folders to make travis CI to work (this time will work!)
- Update Gemfile.lock in the test folders to make travis CI to work again
Trailblazer::Rails::Railtie
divided in 2 modules:Loader
-> require_dependecyconcepts
ExtendApplicationController
-> includerun
andrender
in controllers
- Fixed issue for rails 5.2rc2 when loading model's files
- Rubocop introduced
- Allow enabling tracing when using
run
viaconfig.trailblazer.enable_tracing = true
- Drop deprecated syntax for controller
run
- Allow disabling of the Trailblazer loader via
config.trailblazer.use_loader = false
- Support Trailblazer 2.1.0+
- Drop support for older version of Trailblazer
Trailblazer::Rails::Railtie
divided in 2 modules:Loader
-> require_dependecyconcepts
ExtendApplicationController
-> includerun
andrender
in controllers
- Remove Gemfile.lock in the test folders to make travis CI to work
- Fixed Circular dependency detected in rails 5.2
- Fixed typo error in use_loader config flag
- Introduce use_loader config flag
- Hook trailblazer application_controller initializer to finisher_hook
- Make
Railtie::extend_application_controller!
overwriteable via a module.
- Return the computed application controller constant from
Railtie::extend_application_controller!
to makecompat
code simpler.
- Allow configuring
ApplicationController
constant viaconfig.trailblazer.application_controller
.
- Allow using this gem without
cells,
by loading cells support only when thecells
gem got detected. Thanks to @promisedlandt.
- Runs only with >= Trailblazer 2.0.0.
- Removed
Controller#form
,#present
and#respond
. The latter is now replaced withEndpoint
. The only operation trigger isController#run
. - Added support for explicit
render cell(Artist::Cell::Index, model)
. - Autoloading got replaced with explicit requires.
- Better engines support.
- Fix
Responder#errors
by simply removing it and lettingOperation#errors
return the contract errors.
- Make it work with Rails 3.x, again.
- Fix loading of
reform-rails
.
- Require
reform-rails
as a static dependency. This simplifies the user's setup significantly. - Run the
Railtie
afterreform.form_extensions
and allow reform-rails to do its setup work, then load concepts.
- Require
trailblazer-loader-0.0.7
. - Fix sorting, model files are now always required first.
- Manually include
Operation::Controller
inApplicationController
for every reload.
- Bump to
trailblazer-loader
0.0.4.
- Remove cells loading code, this happens via trailblazer-loader now.
- We now load the concept's model file if it exists.
- Require
trailblazer-loader
.
- Use
trailblazer-loader
for loading operations and associated files, now. Note thatoperations.rb
now isoperation.rb
(hence the minor bump). - The
Operation::Controller
module is not included intoApplicationController
automatically. - Added
Trailblazer::Test::Integration
.
- Fix
Controller#run
, which now returns the operation instance instead of theElse
object.
- Treat all requests as
params
requests unless the operation has a representer mixed in. If you don't want that, you can override usingis_document: false
. This appears to be the smoothest solution for all. Thanks to @Scharrels for discussion. - In
Controller#form
, the options argument is now passed intoform.prepopulate!(options)
. This allows to use arbitrary options and theoptions[:params]
for prepopulation. Thanks @sauy7 for discussion.
- Treat
:js
requests as non-document, too. Controller#form
now returns the form object and not the operation.- In
Controller
,#form
,#present
,#run
and#respond
now all have the same API:run(constant, options)
. If you want to pass a custom params hash, userun Comment::Create, params: {..}
.
Operation::contract
works properly withOperation::ActiveModel
mixed in.
- First version running with Trailblazer 1.0.0.