diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 985fe11822b..1d6708d674f 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -38,16 +38,16 @@ module ActionDispatch end end - private - def controller(req) - req.controller_class - rescue NameError => e - raise ActionController::RoutingError, e.message, e.backtrace - end + private + def controller(req) + req.controller_class + rescue NameError => e + raise ActionController::RoutingError, e.message, e.backtrace + end - def dispatch(controller, action, req, res) - controller.dispatch(action, req, res) - end + def dispatch(controller, action, req, res) + controller.dispatch(action, req, res) + end end class StaticDispatcher < Dispatcher