[Jifty-commit] r7417 - jifty/trunk/lib/Jifty/View/Declare

Jifty commits jifty-commit at lists.jifty.org
Mon Aug 24 18:09:50 EDT 2009


Author: sartak
Date: Mon Aug 24 18:09:49 2009
New Revision: 7417

Modified:
   jifty/trunk/lib/Jifty/View/Declare/CRUD.pm

Log:
Warn about missing object_type

Modified: jifty/trunk/lib/Jifty/View/Declare/CRUD.pm
==============================================================================
--- jifty/trunk/lib/Jifty/View/Declare/CRUD.pm	(original)
+++ jifty/trunk/lib/Jifty/View/Declare/CRUD.pm	Mon Aug 24 18:09:49 2009
@@ -140,7 +140,12 @@
 
 sub object_type {
     my $self = shift;
-    return $self->package_variable('object_type') || get('object_type');
+    my $object_type = $self->package_variable('object_type') || get('object_type');
+
+    warn "No object type found for $self"
+        if !$object_type;
+
+    return $object_type;
 }
 
 =head2 record_class


More information about the Jifty-commit mailing list