projects
/
gitmo/MooseX-Object-Pluggable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4a9b5ed
)
And a fix for the failing test
Shawn M Moore [Fri, 17 Oct 2008 12:14:52 +0000 (12:14 +0000)]
lib/MooseX/Object/Pluggable.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Object/Pluggable.pm
b/lib/MooseX/Object/Pluggable.pm
index
f02f28e
..
6f53694
100644
(file)
--- a/
lib/MooseX/Object/Pluggable.pm
+++ b/
lib/MooseX/Object/Pluggable.pm
@@
-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;