- 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.