projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1053149
)
make sure the applicant is loaded first
Jesse Luehrs [Sun, 19 Jun 2011 06:27:03 +0000 (
01:27
-0500)]
lib/Moose/Util.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util.pm
b/lib/Moose/Util.pm
index
c62701d
..
fb2a409
100644
(file)
--- a/
lib/Moose/Util.pm
+++ b/
lib/Moose/Util.pm
@@
-137,6
+137,7
@@
sub _apply_all_roles {
return unless @role_metas;
+ Class::MOP::load_class($applicant) unless blessed($applicant);
my $meta = ( blessed $applicant ? $applicant : Moose::Meta::Class->initialize($applicant) );
if ( scalar @role_metas == 1 ) {