Method: Iry.handle_constraints
- Defined in:
- lib/iry.rb
.handle_constraints(model) { ... } ⇒ nil, Handlers::Model
Executes block and in case of constraints violations on ‘model`, block is halted and errors are appended to `model`
110 111 112 |
# File 'lib/iry.rb', line 110 def self.handle_constraints(model, &block) TransformConstraints.handle_constraints(model, &block) end |