]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Model/Base.pm
fixed index action, you can now over-ride it, but otherwise it just calls list
[maypole.git] / lib / Maypole / Model / Base.pm
index de33ac98c991137b24712b86d947553629d2f01e..d5d325c6dfaaf374414ac728ec9f894e9b2de1a3 100644 (file)
@@ -133,6 +133,9 @@ Empty Action.
 
 Empty Action.
 
+=item index
+
+Empty Action, calls list if provided with a table.
 
 =back
 
@@ -148,6 +151,14 @@ sub view : Exported {
 sub edit : Exported {
 }
 
+sub index : Exported {
+    my ( $self, $r ) = @_;
+    if ($r->table) {
+       $r->template("list");
+       return $self->list($r);
+    } 
+}
+
 =pod
 
 Also, see the exported commands in C<Maypole::Model::CDBI>.