aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-25 16:25:52 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-25 16:25:52 -0700
commit67b2841fbeb6db33dd78a95dd61329a8a56fc7c0 (patch)
tree793aaafccf0b982df8766262b358cda0b8d6c092 /actionpack/lib/action_dispatch
parenta26033b4a620059dff2779bdc77024f3123cc44f (diff)
downloadrails-67b2841fbeb6db33dd78a95dd61329a8a56fc7c0.tar.gz
rails-67b2841fbeb6db33dd78a95dd61329a8a56fc7c0.tar.bz2
rails-67b2841fbeb6db33dd78a95dd61329a8a56fc7c0.zip
adding a direct dispatch method to controller classes
This saves a lambda and request allocation on each request.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index c026d0e2d9..3e3a424df3 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -44,7 +44,7 @@ module ActionDispatch
end
def dispatch(controller, action, req)
- controller.action(action).call(req.env)
+ controller.dispatch(action, req)
end
end