instance method
respond_to_missing?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
respond_to_missing?(name, include_private = false)
No documentation comment.
Parameters
-
namereq -
include_privateopt = false
Source
# File actionview/lib/action_view/test_case.rb, line 285
def respond_to_missing?(name, include_private = false)
begin
routes = @controller.respond_to?(:_routes) && @controller._routes
rescue
# Don't call routes, if there is an error on _routes call
end
routes &&
(routes.named_routes.route_defined?(name) ||
routes.mounted_helpers.method_defined?(name))
end
Defined in actionview/lib/action_view/test_case.rb line 285
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior