instance method
method_missing
Ruby on Rails 8.0.4
Since v3.0.20Signature
method_missing(selector, ...)
ROUTES TODO: These assertions should really work in an integration context
Parameters
-
selectorreq -
...req
Source
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 265
def method_missing(selector, ...)
if @controller && @routes&.named_routes&.route_defined?(selector)
@controller.public_send(selector, ...)
else
super
end
end
Defined in actionpack/lib/action_dispatch/testing/assertions/routing.rb line 265
· View on GitHub
· Improve this page
· Find usages on GitHub