Fix Chained Dispatch broken by chain registration.
[catagits/Catalyst-Runtime.git] / 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} || [] };