9
[gitmo/MooseX-Object-Pluggable.git] / lib / MooseX / Object / Pluggable.pm
index f02f28e..51b5fdd 100644 (file)
@@ -5,7 +5,7 @@ use Moose::Role;
 use Class::MOP;
 use Module::Pluggable::Object;
 
-our $VERSION = '0.0008';
+our $VERSION = '0.0009';
 
 =head1 NAME
 
@@ -156,6 +156,8 @@ sub load_plugins {
     my @load = grep { not exists $loaded->{$_} } @plugins;
     my @roles = map { $self->_role_from_plugin($_) } @load;
 
+    return if @roles == 0;
+
     if ( $self->_load_and_apply_role(@roles) ) {
         @{ $loaded }{@load} = @roles;
         return 1;
@@ -343,6 +345,8 @@ L<http://search.cpan.org/dist/MooseX-Object-Pluggable>
 
 =item Stevan Little - EVERYTHING. Without him this would have never happened.
 
+=item Shawn M Moore - bugfixes
+
 =back
 
 =head1 COPYRIGHT