[Catalyst] Documentation bug in Catalyst::Request

Toby Corkindale tjc at wintrmute.net
Wed Oct 18 13:44:06 CEST 2006


Bug in Catalyst::Request.
It says:
  $req->action
       Returns the requested action as a Catalyst::Action object.


However, it just returns the "action", (ie. foo/bar).
To get a genuine Catalyst::Action object, you need to call $c->action.
I'd want to keep backwards compatibility, so maybe note in C::R that the method
returns the equivelent of $c->action->action, and that you might want to
investigate calling $c->action if you want a Catalyst::Action object.

-Toby

-- 
Turning and turning in the widening gyre/The falcon cannot hear the falconer;
Things fall apart, the centre cannot hold/Mere anarchy is loosed upon the world
(gpg --keyserver www.co.uk.pgp.net --recv-key B1CCF88E)



More information about the Catalyst mailing list