Class: Praxis::ValidationHandler
- Inherits:
-
Object
- Object
- Praxis::ValidationHandler
- Defined in:
- lib/praxis/validation_handler.rb
Instance Method Summary collapse
-
#handle!(summary:, errors: nil, exception: nil, **opts) ⇒ Object
Should return the Response to send back.
Instance Method Details
#handle!(summary:, errors: nil, exception: nil, **opts) ⇒ Object
Should return the Response to send back
6 7 8 9 10 |
# File 'lib/praxis/validation_handler.rb', line 6 def handle!(summary:, errors: nil, exception: nil, **opts) opts.delete(:request) opts.delete(:stage) Responses::ValidationError.new(summary: summary, errors: errors, exception: exception, **opts) end |