]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/View/Base.pm
Changed View so it uses table name rather than class moniker in template paths.
[maypole.git] / lib / Maypole / View / Base.pm
index a2718c47e53d34f51aba11ccbc0bd99e618d2823..3164c0110ef8a25369a9dd19d1cd55c304439e18 100644 (file)
@@ -19,7 +19,7 @@ sub paths {
        push(@output,
             (
               $r->model_class
-             && File::Spec->catdir( $path, $r->model_class->moniker )
+             && File::Spec->catdir( $path, $r->model_class->table )
              )
             );
        push(@output, File::Spec->catdir( $path, "custom" ));