From 31cc4d621f57f35356b3395cf78d7cf043d6795c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 24 Aug 2015 13:47:04 -0700 Subject: remove setter for the dispatcher class we don't need it anymore. We always use the same dispatcher in tests. --- actionpack/lib/action_dispatch/routing/route_set.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 3706c6cd8e..c97ea545e3 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -285,7 +285,7 @@ module ActionDispatch attr_accessor :formatter, :set, :named_routes, :default_scope, :router attr_accessor :disable_clear_and_finalize, :resources_path_names - attr_accessor :default_url_options, :dispatcher_class + attr_accessor :default_url_options attr_reader :env_key alias :routes :set @@ -392,7 +392,7 @@ module ActionDispatch end def dispatcher(raise_on_name_error) - dispatcher_class.new(raise_on_name_error) + @dispatcher_class.new(raise_on_name_error) end module MountedHelpers -- cgit v1.2.3