[Jifty-commit] r6717 - jifty/trunk/lib/Jifty/Action

Jifty commits jifty-commit at lists.jifty.org
Tue Mar 31 13:17:58 EDT 2009


Author: alexmv
Date: Tue Mar 31 13:17:57 2009
New Revision: 6717

Modified:
   jifty/trunk/lib/Jifty/Action/Record.pm

Log:
This codepath is not an elsif, and we only care if there is no $model

Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm	Tue Mar 31 13:17:57 2009
@@ -66,7 +66,7 @@
 
         if ($class eq "Jifty::Action::Record") {
             $self->log->fatal("Jifty::Action::Record must be subclassed to be used");
-        } else {
+        } elsif (not $model) {
             $self->log->fatal("Cannot determine model for Jifty::Action::Record subclass $class");
         }
         $model


More information about the Jifty-commit mailing list