diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-03-08 16:49:47 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-03-08 16:50:00 -0800 |
commit | 056042eb829e0507ed605264d43a79ce88112288 (patch) | |
tree | c4ff22c2fa76e5b1bc013948aff4f068cdd4e172 /actionpack/lib/action_controller/middleware.rb | |
parent | 146a5305d56b636d2fd2c2a09a58f5f3edc2d9c0 (diff) | |
download | rails-056042eb829e0507ed605264d43a79ce88112288.tar.gz rails-056042eb829e0507ed605264d43a79ce88112288.tar.bz2 rails-056042eb829e0507ed605264d43a79ce88112288.zip |
Simplify the action endpoint:
* Remove ActionEndpoint in favor of passing a block to MiddlewareStack
* Always create a Request; the performance win of RackDelegation is around
the response; the Request object hit is limited to a single object allocation
* #dispatch takes a Request
Diffstat (limited to 'actionpack/lib/action_controller/middleware.rb')
-rw-r--r-- | actionpack/lib/action_controller/middleware.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/middleware.rb b/actionpack/lib/action_controller/middleware.rb index 17275793b7..2115b07b3e 100644 --- a/actionpack/lib/action_controller/middleware.rb +++ b/actionpack/lib/action_controller/middleware.rb @@ -6,7 +6,8 @@ module ActionController end def call(env) - @controller.build(@app).dispatch(:index, env) + request = ActionDispatch::Request.new(env) + @controller.build(@app).dispatch(:index, request) end end |