X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FModel%2FBase.pm;h=d5d325c6dfaaf374414ac728ec9f894e9b2de1a3;hb=6fb98ace4f824a32e25cbd161743814892d11408;hp=de33ac98c991137b24712b86d947553629d2f01e;hpb=f19715f56244cc6d862169c2dd656b8a2f3845b5;p=maypole.git diff --git a/lib/Maypole/Model/Base.pm b/lib/Maypole/Model/Base.pm index de33ac9..d5d325c 100644 --- a/lib/Maypole/Model/Base.pm +++ b/lib/Maypole/Model/Base.pm @@ -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.