[Bps-public-commit] Path-Dispatcher branch, master, updated. 6bcaf42958820eeac12ea19e01270959b8e22c95

sartak at bestpractical.com sartak at bestpractical.com
Sun Aug 9 04:45:24 EDT 2009


The branch, master has been updated
       via  6bcaf42958820eeac12ea19e01270959b8e22c95 (commit)
      from  592676de411feb24c3ce4ec4edd764da9badb541 (commit)

Summary of changes:
 lib/Path/Dispatcher/Match.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 6bcaf42958820eeac12ea19e01270959b8e22c95
Author: Shawn M Moore <sartak at gmail.com>
Date:   Sun Aug 9 04:45:12 2009 -0400

    Force 0 or 1 for the set_number_vars default

diff --git a/lib/Path/Dispatcher/Match.pm b/lib/Path/Dispatcher/Match.pm
index 5ba67b9..2414195 100644
--- a/lib/Path/Dispatcher/Match.pm
+++ b/lib/Path/Dispatcher/Match.pm
@@ -29,7 +29,7 @@ has set_number_vars => (
     is      => 'rw',
     isa     => 'Bool',
     lazy    => 1,
-    default => sub { ref(shift->result) eq 'ARRAY' },
+    default => sub { ref(shift->result) eq 'ARRAY' ? 0 : 1 },
 );
 
 sub run {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list