projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix compatibility tests
[gitmo/Mouse.git]
/
lib
/
Mouse
/
Meta
/
Module.pm
diff --git
a/lib/Mouse/Meta/Module.pm
b/lib/Mouse/Meta/Module.pm
index
b9281a8
..
bc74808
100755
(executable)
--- a/
lib/Mouse/Meta/Module.pm
+++ b/
lib/Mouse/Meta/Module.pm
@@
-32,6
+32,8
@@
sub initialize {
sub reinitialize {
my($class, $package_name, @args) = @_;
+ $package_name = $package_name->name if ref $package_name;
+
($package_name && !ref($package_name))
|| $class->throw_error("You must pass a package name and it cannot be blessed");