Trailblazer v0.2.1 Release Notes
-
- ➕ Added
Operation#setup_model!(params)
that can be overridden to add nested objects or process models right aftermodel!
. Don't add deserialization logic here, let Reform/Representable do that. - ➕ Added
Operation#setup_params!(params)
to normalize parameters before#process
. Thanks to @gogogarrett. - ➕ Added
Controller::ActiveRecord
that will setup a named controller instance variable for your operation model. Thanks @gogogarrett! - ➕ Added
CRUD::ActiveModel
that currently infers the contract's::model
from the operation's model.
- ➕ Added