Subject: | go() and detach() methods don't work without last array ref |
$c->go($c->controller('Foo::Bar')->action_for('bar'), ['capture'], [])
will not work if called without the last argument, the empty array ref
e.g., this:
$c->go($c->controller('Foo::Bar')->action_for('bar'), ['capture'])
will not work with a setup like this:
package App::Controller::Foo;
sub base :Chained('/') :PathPart('foo') :CaptureArgs(1) {} # capture
/foo/*
sub foo :Chained('base') :PathPart('') :Args(0) {} # end of chain
package App::Controller::Foo::Bar;
sub base :Chained('/foo/base') :PathPart('bar') :CaptureArgs(1) {} #
capture /foo/*/bar/*
sub bar :Chained('base') :PathPart('') :Args(0) {} # end of chain