X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FRequestArguments.pm;h=f490eedccddbcd58713434d5102672c17e0c4c3e;hp=a2fee74d0e21055987a1aa45aeaa483e28007a75;hb=4a805f62625bb1e4152fd2ef25169ac6683ca611;hpb=b66d43106c928f395d6e0628f9f80b72a274b9d8 diff --git a/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm b/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm index a2fee74..f490eed 100644 --- a/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm +++ b/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm @@ -10,8 +10,6 @@ use namespace::autoclean; use Catalyst::Controller::DBIC::API::JoinBuilder; -=for Pod::Coverage check_rel - =attribute_private search_validator A Catalyst::Controller::DBIC::API::Validator instance used solely to validate search parameters @@ -199,13 +197,13 @@ Like the synopsis in DBIC::API shows, you can declare a "template" of what is al { my ($self, $new) = @_; - sub check_rel { + sub _check_rel { my ($self, $rel, $static) = @_; if(ArrayRef->check($rel)) { foreach my $rel_sub (@$rel) { - $self->check_rel($rel_sub, $static); + $self->_check_rel($rel_sub, $static); } } elsif(HashRef->check($rel)) @@ -225,7 +223,7 @@ Like the synopsis in DBIC::API shows, you can declare a "template" of what is al foreach my $rel (@$new) { - $self->check_rel($rel, $p->static); + $self->_check_rel($rel, $p->static); } }, ); @@ -576,6 +574,7 @@ This builder method generates the search attributes as => $self->as || ((scalar(@{$static->as})) ? $static->as : undef), prefetch => $self->prefetch || $static->prefetch || undef, rows => $self->count || $static->count, + page => $static->page, offset => $self->offset, join => $self->build_joins, };