projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7d27ee9
)
class_of in MetaRole::_make_new_metaclass
Shawn M Moore [Sat, 28 Mar 2009 21:33:29 +0000 (17:33 -0400)]
lib/Moose/Util/MetaRole.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/MetaRole.pm
b/lib/Moose/Util/MetaRole.pm
index
d78cff7
..
4855867
100644
(file)
--- a/
lib/Moose/Util/MetaRole.pm
+++ b/
lib/Moose/Util/MetaRole.pm
@@
-43,7
+43,7
@@
sub _make_new_metaclass {
my $for = shift;
my $options = shift;
- return $for->meta()
+ return Class::MOP::class_of($for)
unless grep { exists $options->{ $_ . '_roles' } }
qw(
metaclass