1
0
Fork 0
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:
Jeremy Kemper 2010-03-01 23:22:11 -08:00
parent f221a6f19f
commit ea4fd64133

View file

@ -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