Module: Roda::RodaPlugins::InvalidRequestBody::RequestMethods

Defined in:
lib/roda/plugins/invalid_request_body.rb

Instance Method Summary collapse

Instance Method Details

#POSTObject

Handle invalid request bodies as configured if the default behavior raises an exception.



73
74
75
76
77
# File 'lib/roda/plugins/invalid_request_body.rb', line 73

def POST
  super
rescue => e 
  handle_invalid_request_body(e)
end