[Jifty-commit] r408 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Dec 27 15:17:15 EST 2005


Author: alexmv
Date: Tue Dec 27 15:17:15 2005
New Revision: 408

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Collection.pm

Log:
 r8426 at zoq-fot-pik:  chmrr | 2005-12-27 15:16:45 -0500
  * Move the order_by into implicit_clauses, so other implicit_clauses
    can override ordering


Modified: jifty/trunk/lib/Jifty/Collection.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Collection.pm	(original)
+++ jifty/trunk/lib/Jifty/Collection.pm	Tue Dec 27 15:17:15 2005
@@ -77,11 +77,19 @@
     }
     $self->table($self->new_item->table());
     $self->SUPER::_init(%args);
+}
+
+=head2 implicit_clauses
 
+Defaults to ordering by the C<id> column.
+
+=cut
+
+sub implicit_clauses {
+    my $self = shift;
     $self->order_by( column => 'id',order => 'asc');
 }
 
-
 =head2 new_item
 
 Overrides L<Jifty::DBI::Collection>'s new_item to pass in the current


More information about the Jifty-commit mailing list