[Jifty-commit] r6607 - in jifty/trunk: lib/Jifty

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


Author: alexmv
Date: Tue Mar 17 10:58:01 2009
New Revision: 6607

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Object.pm

Log:
 r43246 at kohr-ah:  chmrr | 2009-03-17 10:26:33 -0400
 Jifty::Date no longer exists; also, use the return value from ->can


Modified: jifty/trunk/lib/Jifty/Object.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Object.pm	(original)
+++ jifty/trunk/lib/Jifty/Object.pm	Tue Mar 17 10:58:01 2009
@@ -79,9 +79,8 @@
             my $x = (CORE::caller( $depth++ ))[0];
             my $caller_self = $DB::args[0];
             next unless ref($caller_self);    #skip class methods;
-            next if $caller_self->isa('Jifty::Date'); 
-            next unless $caller_self->can('current_user');
-            next unless my $t = $caller_self->current_user;
+            next unless my $s = $caller_self->can('current_user');
+            next unless my $t = $s->($caller_self);
             next unless defined $t->id;
             $cu = $t;
         }


More information about the Jifty-commit mailing list