X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FActionRole%2FQueryMatching.pm;h=12dab23b6832a3207d2cfc3fbef108477e039541;hb=fe82a51db5b44026493ce2a6e05c0f233ddfb4dd;hp=955258b1b3aae1a63d38af006ba030a6c86f9c9e;hpb=25ca36c2fb3547600772a73c722a30b469ad632f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/ActionRole/QueryMatching.pm b/lib/Catalyst/ActionRole/QueryMatching.pm index 955258b..12dab23 100644 --- a/lib/Catalyst/ActionRole/QueryMatching.pm +++ b/lib/Catalyst/ActionRole/QueryMatching.pm @@ -32,12 +32,12 @@ has query_constraints => ( sub _build_query_constraints { my $self = shift; my ($constraint_proto, @extra) = $self->_query_attr; - + die "Action ${\$self->private_path} defines more than one 'Query' attribute" if scalar @extra; return +{} unless defined($constraint_proto); $constraint_proto =~s/^(.+),\.\.\.$/$1/; # slurpy is handled elsewhere - + # Query may be a Hash like Query(p=>Int,q=>Str) OR it may be a Ref like # Query(Tuple[p=>Int, slurpy HashRef]). The only way to figure is to eval it # and look at what we have. @@ -83,7 +83,7 @@ around ['match','match_captures'] => sub { around 'list_extra_info' => sub { my ($orig, $self, @args) = @_; return { - %{ $self->$orig(@args) }, + %{ $self->$orig(@args) }, }; };