X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FAttribute.pm;h=9176bd0848abae1244aae137316a4e6b03d4096b;hp=733c1293dda74746f6eeb0aa213c66150cc961d8;hb=bb73340585512b0e09519eea54480ea3729ebf0b;hpb=9b2c1c4edf716f870c325a2cf01aa05a17ef02d6 diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index 733c129..9176bd0 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -289,7 +289,7 @@ sub get_parent_args { my $name = shift; for my $super ($class->meta->linearized_isa) { - my $super_attr = $super->meta->get_attribute($name) + my $super_attr = $super->can("meta") && $super->meta->get_attribute($name) or next; return %{ $super_attr->_create_args }; }