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

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Jul 1 20:25:25 EDT 2007


Author: sterling
Date: Sun Jul  1 20:25:25 2007
New Revision: 3588

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

Log:
 r7901 at dynpc145:  andrew | 2007-07-01 19:21:40 -0500
 Altered the ClassLoader to create Collections for models deeper under the model namespace,like "App::Model::Foo::Bar". These is consistent with the handling for actions and other components already in place.


Modified: jifty/trunk/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/trunk/lib/Jifty/ClassLoader.pm	(original)
+++ jifty/trunk/lib/Jifty/ClassLoader.pm	Sun Jul  1 20:25:25 2007
@@ -141,7 +141,7 @@
                   "package $module;\n"
                 . "use base qw/Jifty::CurrentUser/; sub _autogenerated { 1 };\n"
             );
-    } elsif ( $module =~ /^(?:$base)::Model::(\w+)Collection$/ ) {
+    } elsif ( $module =~ /^(?:$base)::Model::([^\.]+)Collection$/ ) {
         return $self->return_class(
                   "package $module;\n"
                 . "use base qw/@{[$base]}::Collection/;\n"


More information about the Jifty-commit mailing list