projects
/
gitmo/Moo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
74ec40e
)
restore init_arg => undef checking
Matt S Trout [Sun, 5 May 2013 18:04:53 +0000 (18:04 +0000)]
lib/Moo/HandleMoose.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moo/HandleMoose.pm
b/lib/Moo/HandleMoose.pm
index
30a97c3
..
7563179
100644
(file)
--- a/
lib/Moo/HandleMoose.pm
+++ b/
lib/Moo/HandleMoose.pm
@@
-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;