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