X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FActionRole%2FQueryMatching.pm;h=12dab23b6832a3207d2cfc3fbef108477e039541;hp=955258b1b3aae1a63d38af006ba030a6c86f9c9e;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=9868e0a0023cc8b598d60f150ea367e0056a65f3 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) }, }; };