restore init_arg => undef checking
Matt S Trout [Sun, 5 May 2013 18:04:53 +0000 (18:04 +0000)]
lib/Moo/HandleMoose.pm

index 30a97c3..7563179 100644 (file)
@@ -106,6 +106,7 @@ sub inject_real_metaclass_for {
         (
           (grep { $_->has_init_arg }
              $meta->attribute_metaclass->meta->get_all_attributes),
+          grep { $_->has_init_arg ? defined($_->init_arg) : 1 }
           map {
             my $meta = Moose::Util::resolve_metatrait_alias('Attribute', $_)
                          ->meta;