Add missing &

This commit is contained in:
Dwight Watson 2024-01-08 16:19:19 +11:00
parent 3bbf21c343
commit e358953660

@ -248,7 +248,7 @@ def assert_routing(path, options, defaults = {}, extras = {}, message = nil)
# ROUTES TODO: These assertions should really work in an integration context
def method_missing(selector, ...)
if @controller && @routes&.named_routes.route_defined?(selector)
if @controller && @routes&.named_routes&.route_defined?(selector)
@controller.public_send(selector, ...)
else
super