lib/doozer/app.rb in doozer-0.2.1 vs lib/doozer/app.rb in doozer-0.2.2
- old
+ new
@@ -33,35 +33,34 @@
extra_params = route.extra_params(path)
controller_klass = handler(route.controller.to_sym)
controller = controller_klass.new({:env=>env, :route=>route, :extra_params=>extra_params, :port=>@options[:Port]})
# call after_initialize test for excludes
- execution_time('controller.after_initialize',:start)
+ #execution_time('controller.after_initialize',:start)
controller.after_initialize if not controller_klass.after_initialize_exclude.include?(route.action.to_sym)
- execution_time(nil, :end)
+ #execution_time(nil, :end)
begin
# call before_filter test for excludes
- execution_time('controller.before_filter',:start)
+ #execution_time('controller.before_filter',:start)
controller.before_filter if not controller_klass.before_filter_exclude.include?(route.action.to_sym)
- execution_time(nil,:end)
+ #execution_time(nil,:end)
# call the action method
- execution_time('controller.method(route.action).call',:start)
+ #execution_time('controller.method(route.action).call',:start)
controller.method(route.action).call()
- execution_time(nil,:end)
+ #execution_time(nil,:end)
# call after_filter test for excludes
- execution_time('controller.after_filter',:start)
+ #execution_time('controller.after_filter',:start)
controller.after_filter if not controller_klass.after_filter_exclude.include?(route.action.to_sym)
- execution_time(nil, :end)
+ #execution_time(nil, :end)
# render controller...
- execution_time('controller.render_result',:start)
- # r = Rack::Response.new(controller.render_controller(view, layout), route.status, {"Content-Type" => route.content_type})
+ #execution_time('controller.render_result',:start)
r = Rack::Response.new(controller.render_result, route.status, {"Content-Type" => route.content_type})
- execution_time(nil,:end)
+ #execution_time(nil,:end)
r.set_cookie('flash',{:value=>nil, :path=>'/'})
r.set_cookie('session',{:value=>controller.session_to_cookie(), :path=>'/'})
# finalize the request
controller.finished!
\ No newline at end of file