Class: Praxis::ValidationHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/praxis/validation_handler.rb

Instance Method Summary collapse

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