projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4a79464
)
exclude self from add_role
Matt S Trout [Sat, 5 May 2012 18:13:15 +0000 (18:13 +0000)]
lib/Moo/HandleMoose.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moo/HandleMoose.pm
b/lib/Moo/HandleMoose.pm
index
e63e0be
..
6540ec2
100644
(file)
--- a/
lib/Moo/HandleMoose.pm
+++ b/
lib/Moo/HandleMoose.pm
@@
-113,7
+113,8
@@
sub inject_real_metaclass_for {
);
}
$meta->add_role(Class::MOP::class_of($_))
- for do { no warnings 'once'; keys %{$Role::Tiny::APPLIED_TO{$name}} };
+ for grep $_ ne $name,
+ do { no warnings 'once'; keys %{$Role::Tiny::APPLIED_TO{$name}} };
$DID_INJECT{$name} = 1;
$meta;
}