projects
/
dbsrgits/DBIx-Class.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into topic/constructor_rewrite
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
CDBICompat
/
Pager.pm
1
package # hide from PAUSE
2
DBIx::Class::CDBICompat::Pager;
3
4
use strict;
5
use warnings FATAL => 'all';
6
7
*pager = \&page;
8
9
sub page {
10
my $class = shift;
11
12
my $rs = $class->search(@_);
13
unless ($rs->{attrs}{page}) {
14
$rs = $rs->page(1);
15
}
16
return ( $rs->pager, $rs );
17
}
18
19
1;