[Bps-public-commit] r16363 - in Path-Dispatcher/trunk: lib/Path

sartak at bestpractical.com sartak at bestpractical.com
Sun Oct 19 06:17:01 EDT 2008


Author: sartak
Date: Sun Oct 19 06:17:00 2008
New Revision: 16363

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher.pm

Log:
 r74128 at onn:  sartak | 2008-10-19 06:16:27 -0400
 Fixes for the rules attr in Path::Dispatcher


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	Sun Oct 19 06:17:00 2008
@@ -1,6 +1,7 @@
 #!/usr/bin/env perl
 package Path::Dispatcher;
 use Moose;
+use MooseX::AttributeHelpers;
 
 our $VERSION = '0.02';
 
@@ -25,6 +26,7 @@
     metaclass => 'Collection::Array',
     is        => 'rw',
     isa       => 'ArrayRef[Path::Dispatcher::Rule]',
+    init_args => 'rules',
     default   => sub { [] },
     provides  => {
         push     => 'add_rule',



More information about the Bps-public-commit mailing list