Merge the last bits of indirect callchain optimization
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / CDBICompat / Pager.pm
index 36fbce9..7316d9d 100644 (file)
@@ -2,9 +2,15 @@ package # hide from PAUSE
     DBIx::Class::CDBICompat::Pager;
 
 use strict;
+
+# even though fatalization has been proven over and over to be a universally
+# bad idea, this line has been part of the code from the beginning
+# leaving the compat layer as-is, something may in fact depend on that
 use warnings FATAL => 'all';
 
-*pager = \&page;
+use base 'DBIx::Class';
+
+sub pager { shift->page(@_) }
 
 sub page {
   my $class = shift;