1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

pull up dispatcher allocation

the dispatcher class isn't configurable anymore, so pull up allocation
to the method that needs it.
This commit is contained in:
Aaron Patterson 2015-08-24 14:05:54 -07:00
parent 59e3b648c3
commit 9b20b1cc0f
2 changed files with 1 additions and 5 deletions

View file

@ -368,7 +368,7 @@ module ActionDispatch
end
def dispatcher(raise_on_name_error)
@set.dispatcher raise_on_name_error
Routing::RouteSet::Dispatcher.new raise_on_name_error
end
end

View file

@ -385,10 +385,6 @@ module ActionDispatch
@prepend.each { |blk| eval_block(blk) }
end
def dispatcher(raise_on_name_error)
Routing::RouteSet::Dispatcher.new raise_on_name_error
end
module MountedHelpers
extend ActiveSupport::Concern
include UrlFor