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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Mar 16 01:07:25 EDT 2007


Author: jesse
Date: Fri Mar 16 01:07:23 2007
New Revision: 2973

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

Log:
 r53495 at pinglin:  jesse | 2007-03-16 00:29:30 -0400
 * When we use App::Class, actually require the module, to save the user some typing


Modified: jifty/trunk/lib/Jifty.pm
==============================================================================
--- jifty/trunk/lib/Jifty.pm	(original)
+++ jifty/trunk/lib/Jifty.pm	Fri Mar 16 01:07:23 2007
@@ -287,11 +287,15 @@
 Return Class in application space.  For example C<app_class('Model', 'Foo')>
 returns YourApp::Model::Foo.
 
+By the time you get it back, the class will have already been required
+
 =cut
 
 sub app_class {
     shift;
-    join('::', Jifty->config->framework('ApplicationClass'), @_);
+    my $val = join('::', Jifty->config->framework('ApplicationClass'), @_);
+    Jifty::Util->try_to_require($val);
+    return $val;
 }
 
 =head2 web


More information about the Jifty-commit mailing list