mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert orphaned SharedTestRoutes
This commit is contained in:
parent
f221a6f19f
commit
ea4fd64133
1 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ module ActionView
|
|||
setup :setup_with_controller
|
||||
def setup_with_controller
|
||||
@controller = TestController.new
|
||||
@router = SharedTestRoutes
|
||||
@output_buffer = ActiveSupport::SafeBuffer.new
|
||||
@rendered = ''
|
||||
|
||||
|
@ -153,7 +152,7 @@ module ActionView
|
|||
end
|
||||
|
||||
def method_missing(selector, *args)
|
||||
if @router.named_routes.helpers.include?(selector)
|
||||
if ActionDispatch::Routing::Routes.named_routes.helpers.include?(selector)
|
||||
@controller.__send__(selector, *args)
|
||||
else
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue