[Jifty-commit] r3679 - in jifty/trunk: lib/Jifty/View/Declare
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jul 12 01:01:48 EDT 2007
Author: trs
Date: Thu Jul 12 01:01:48 2007
New Revision: 3679
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
Log:
r25185 at zot: tom | 2007-07-12 00:50:05 -0400
Extract out per_page
Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm (original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm Thu Jul 12 01:01:48 2007
@@ -315,6 +315,7 @@
};
+sub per_page { 25 }
sub _current_collection {
my $self =shift;
@@ -330,7 +331,7 @@
$collection->unlimit();
}
- $collection->set_page_info( current_page => $page, per_page => 25 );
+ $collection->set_page_info( current_page => $page, per_page => $self->per_page );
return $collection;
}
More information about the Jifty-commit
mailing list