note weirdness
Hans Dieter Pearcey [Thu, 26 Mar 2009 21:15:52 +0000 (17:15 -0400)]
lib/Catalyst/Request/REST.pm

index 7c3b2e4..8f3a5a8 100644 (file)
@@ -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;