lib/jets/controller/base.rb in jets-2.0.1 vs lib/jets/controller/base.rb in jets-2.0.3

- old
+ new

@@ -21,9 +21,16 @@ super @request = Request.new(event, context) @response = Response.new end + # One key difference between process! vs dispatch! + # + # process! - takes the request through the middleware stack + # dispatch! - does not + # + # Most of the time, you want process! instead of dispatch! + # def process! adapter = Jets::Controller::Rack::Adapter.new(event, context, meth) adapter.rack_vars( 'jets.controller' => self, 'lambda.context' => context,