From: Brian Cassidy Date: Wed, 26 Apr 2006 12:00:04 +0000 (+0000) Subject: removed last; so that _local config will be processed X-Git-Tag: v0.06^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-ConfigLoader.git;a=commitdiff_plain;h=refs%2Ftags%2Fv0.06 removed last; so that _local config will be processed --- diff --git a/Changes b/Changes index 28c3b30..b0194a7 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::Plugin::ConfigLoader. +0.06 Wed Apr 26 2006 + - remove "last;" so that _local configs will be processed + 0.05 Thu Apr 18 2006 - __HOME__ now corresponds to $c->path_to( '' ) and nothing else - __path_to( 'foo/bar' )__ turns in to $c->path_to( 'foo', 'bar' ) diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index f073ccf..c50c0f5 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -10,7 +10,7 @@ use Module::Pluggable::Fast require => 1; use Data::Visitor::Callback; -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 NAME @@ -68,10 +68,7 @@ sub setup { for( @files ) { next unless -f $_; my $config = $loader->load( $_ ); - if( $config ) { - $c->config( $config ); - last; - } + $c->config( $config ) if $config; } }