Fix Chained Dispatch broken by chain registration.
Gareth Kirwan [Mon, 1 Sep 2008 14:57:35 +0000 (14:57 +0000)]
lib/Catalyst/DispatchType/Chained.pm

index cde26e1..2030d40 100644 (file)
@@ -246,7 +246,7 @@ sub register {
         );
     }
 
-    my $children = ($self->{children_of}{ $chained_attr[0] } ||= {});
+    my $children = ($self->_children_of->{ $chained_attr[0] } ||= {});
 
     my @path_part = @{ $action->attributes->{PathPart} || [] };