We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@controller
1 parent 0c152f2 commit fef174fCopy full SHA for fef174f
actionview/lib/action_view/test_case.rb
@@ -284,7 +284,7 @@ def method_missing(selector, *args)
284
285
def respond_to_missing?(name, include_private = false)
286
begin
287
- routes = @controller.respond_to?(:_routes) && @controller._routes
+ routes = defined?(@controller) && @controller.respond_to?(:_routes) && @controller._routes
288
rescue
289
# Don't call routes, if there is an error on _routes call
290
end
0 commit comments