From: Shawn M Moore Date: Sun, 7 Dec 2008 01:31:27 +0000 (+0000) Subject: Pass options to Class::MOP::Package->_new (fixes failing Moose tests) X-Git-Tag: 0.72~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=11ac821da6d7d23574839145f7bb749013ab7959;p=gitmo%2FClass-MOP.git Pass options to Class::MOP::Package->_new (fixes failing Moose tests) --- diff --git a/lib/Class/MOP/Package.pm b/lib/Class/MOP/Package.pm index 215af61..a1e2ec4 100644 --- a/lib/Class/MOP/Package.pm +++ b/lib/Class/MOP/Package.pm @@ -32,6 +32,7 @@ sub initialize { } else { my $meta = ( ref $class || $class )->_new({ 'package' => $package_name, + %options, }); Class::MOP::store_metaclass_by_name($package_name, $meta);