Not sure what I was thinking, but 18637ebb never worked :/
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSet / Pager.pm
CommitLineData
cd122820 1package # hide from pause
2 DBIx::Class::ResultSet::Pager;
3
4use warnings;
5use strict;
6
261a9d64 7# temporary, to load MRO::Compat, will be soon entirely rewritten anyway
8use DBIx::Class::_Util;
9
cd122820 10use base 'Data::Page';
11use mro 'c3';
12
13# simple support for lazy totals
14sub _total_entries_accessor {
15 if (@_ == 1 and ref $_[0]->{total_entries} eq 'CODE') {
16 return $_[0]->{total_entries} = $_[0]->{total_entries}->();
17 }
18
19 return shift->next::method(@_);
20}
21
22sub _skip_namespace_frames { qr/^Data::Page/ }
23
241;