I was wrong about 2d12a809 - the crash is real
[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
7use base 'Data::Page';
8use mro 'c3';
9
10# simple support for lazy totals
11sub _total_entries_accessor {
12 if (@_ == 1 and ref $_[0]->{total_entries} eq 'CODE') {
13 return $_[0]->{total_entries} = $_[0]->{total_entries}->();
14 }
15
16 return shift->next::method(@_);
17}
18
19sub _skip_namespace_frames { qr/^Data::Page/ }
20
211;