[Jifty-commit] r3700 - in jifty/trunk: lib/Jifty t/TestApp/t

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Jul 19 09:36:48 EDT 2007


Author: sterling
Date: Thu Jul 19 09:36:47 2007
New Revision: 3700

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/API.pm
   jifty/trunk/t/TestApp/t/02-dispatch-show-rule-in-wrong-ruleset.t

Log:
 r8113 at dynpc145:  andrew | 2007-07-18 21:01:53 -0500
 Fixing API qualification to make it possible to access actions associated with plugins via ->new_class.


Modified: jifty/trunk/lib/Jifty/API.pm
==============================================================================
--- jifty/trunk/lib/Jifty/API.pm	(original)
+++ jifty/trunk/lib/Jifty/API.pm	Thu Jul 19 09:36:47 2007
@@ -85,13 +85,13 @@
     my $self   = shift;
     my $action = shift;
 
-    my $base_path = Jifty->app_class("Action");
+    my $base_path = Jifty->app_class;
 
     return $action
-        if $action =~ /^Jifty::/
-        or $action =~ /^\Q$base_path\E/;
+        if ($action =~ /^Jifty::/
+        or $action =~ /^\Q$base_path\E::/);
 
-    return $base_path . "::" . $action;
+    return $base_path . "::Action::" . $action;
 }
 
 =head2 reset

Modified: jifty/trunk/t/TestApp/t/02-dispatch-show-rule-in-wrong-ruleset.t
==============================================================================
--- jifty/trunk/t/TestApp/t/02-dispatch-show-rule-in-wrong-ruleset.t	(original)
+++ jifty/trunk/t/TestApp/t/02-dispatch-show-rule-in-wrong-ruleset.t	Thu Jul 19 09:36:47 2007
@@ -4,7 +4,7 @@
 
 use lib 't/lib';
 use Jifty::SubTest;
-use Jifty::Test tests => 8;
+use Jifty::Test tests => 9;
 use Jifty::Test::WWW::Mechanize;
 use Test::Log4perl;
 


More information about the Jifty-commit mailing list