[Jifty-commit] r6337 - jifty/trunk/lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Fri Feb 13 08:31:25 EST 2009
Author: c9s
Date: Fri Feb 13 08:31:24 2009
New Revision: 6337
Modified:
jifty/trunk/lib/Jifty/ClassLoader.pm
Log:
- avert changing the value of $_ of jifty->plugins in compile-time.
Modified: jifty/trunk/lib/Jifty/ClassLoader.pm
==============================================================================
--- jifty/trunk/lib/Jifty/ClassLoader.pm (original)
+++ jifty/trunk/lib/Jifty/ClassLoader.pm Fri Feb 13 08:31:24 2009
@@ -367,9 +367,9 @@
# Construct the list of models for the application for later reference
my %models;
- for ($self->plugins) {
- Jifty::Util->require($_);
- $models{$_} = 1 if /^($base)::Model::(.*)$/ and not /Collection(?:$||\:\:)/;
+ for my $p ($self->plugins) {
+ Jifty::Util->require($p);
+ $models{$p} = 1 if $p =~ m/^($base)::Model::(.*)$/ and not $p =~ m/Collection(?:$||\:\:)/;
}
$self->models(sort keys %models);
More information about the Jifty-commit
mailing list