projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f3ce057
)
No need to remove the metaclass when we're calling reinitialize
Dave Rolsky [Wed, 27 Aug 2008 16:29:02 +0000 (16:29 +0000)]
lib/Moose/Util/MetaRole.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/MetaRole.pm
b/lib/Moose/Util/MetaRole.pm
index
5c61939
..
f0b53c4
100644
(file)
--- a/
lib/Moose/Util/MetaRole.pm
+++ b/
lib/Moose/Util/MetaRole.pm
@@
-44,8
+44,6
@@
sub _make_new_metaclass {
my $old_meta = $for->meta();
- Class::MOP::remove_metaclass_by_name($for);
-
# This could get called for a Moose::Meta::Role as well as a Moose::Meta::Class
my %classes = map {
$_ => _make_new_class( $old_meta->$_(), $options->{ $_ . '_roles' } )