shift->set_cache(undef);
}
-=head2 is_paginated
+=head2 is_paged
-Returns true if the resultset has been paginated
+=over 4
+
+=item Arguments: none
+
+=item Return Value: true, if the resultset has been paginated
+
+=back
=cut
-sub is_paginated {
+sub is_paged {
my ($self) = @_;
return !!$self->{attrs}{page};
}
\r
my $tkfks = $schema->resultset('Artist');\r
\r
-ok !$tkfks->is_paginated, 'vanilla resultset is not paginated';\r
+ok !$tkfks->is_paged, 'vanilla resultset is not paginated';\r
\r
my $paginated = $tkfks->search(undef, { page => 5 });\r
-ok $paginated->is_paginated, 'resultset is paginated now';\r
+ok $paginated->is_paged, 'resultset is paginated now';\r
\r
done_testing;\r
\r