Skip to content

Commit

Permalink
Avoid inspecting the whole route set, closes rails#1525
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 23, 2012
1 parent 06d2d4c commit ed988ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions actionpack/lib/action_dispatch/routing/route_set.rb
Expand Up @@ -9,6 +9,12 @@
module ActionDispatch module ActionDispatch
module Routing module Routing
class RouteSet #:nodoc: class RouteSet #:nodoc:
# Since the router holds references to many parts of the system
# like engines, controllers and the application itself, inspecting
# the route set can actually be really slow, therefore we default
# alias inspect to to_s.
alias inspect to_s

PARAMETERS_KEY = 'action_dispatch.request.path_parameters' PARAMETERS_KEY = 'action_dispatch.request.path_parameters'


class Dispatcher #:nodoc: class Dispatcher #:nodoc:
Expand Down

0 comments on commit ed988ee

Please sign in to comment.