instance method
method_missing
Ruby on Rails 6.0.6
Since v3.0.20 PrivateSignature
method_missing(selector, *args)
No documentation comment.
Parameters
-
selectorreq -
argsrest
Source
# File actionview/lib/action_view/test_case.rb, line 268
def method_missing(selector, *args)
begin
routes = @controller.respond_to?(:_routes) && @controller._routes
rescue
# Don't call routes, if there is an error on _routes call
end
if routes &&
(routes.named_routes.route_defined?(selector) ||
routes.mounted_helpers.method_defined?(selector))
@controller.__send__(selector, *args)
else
super
end
end
Defined in actionview/lib/action_view/test_case.rb line 268
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior