From: Hans Dieter Pearcey Date: Thu, 26 Mar 2009 21:15:52 +0000 (-0400) Subject: note weirdness X-Git-Tag: 0.69~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=27beb190753ae07d0cac22c1aa46e0c2b00d1ee3 note weirdness --- diff --git a/lib/Catalyst/Request/REST.pm b/lib/Catalyst/Request/REST.pm index 7c3b2e4..8f3a5a8 100644 --- a/lib/Catalyst/Request/REST.pm +++ b/lib/Catalyst/Request/REST.pm @@ -17,6 +17,8 @@ use HTTP::Headers::Util qw(split_header_words); sub _insert_self_into { my ($class, $app_class ) = @_; + # the fallback to $app_class is for the (rare and deprecated) case when + # people are defining actions in MyApp.pm instead of in a controller. my $app = Catalyst::Utils::class2appclass( $app_class ) || $app_class; my $req_class = $app->request_class;