Module: Trailblazer::V1_1::Operation::Model::ActiveModel
- Defined in:
- lib/trailblazer/1.1/operation/model/active_model.rb
Overview
Automatically set model_name on operation’s contract.
Instance Method Summary collapse
Instance Method Details
#contract(&block) ⇒ Object
5 6 7 8 |
# File 'lib/trailblazer/1.1/operation/model/active_model.rb', line 5 def contract(*, &block) super contract_class.model(model_class) # this assumes that Form::ActiveModel is mixed in. end |