From: Dave Rolsky Date: Tue, 21 Oct 2008 18:01:24 +0000 (+0000) Subject: Make gross construct ever so slightly less gross in does() X-Git-Tag: 0.60~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e8895723204a63333b492c0b70f0e099b8baa25d;p=gitmo%2FMoose.git Make gross construct ever so slightly less gross in does() --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index 50416f0..dc96d66 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -61,7 +61,7 @@ sub does { Moose::Util::resolve_metatrait_alias(Attribute => $role_name) }; return 0 if !defined($name); # failed to load class - return Moose::Object::does($self, $name); + return $self->Moose::Object::does($name); } sub throw_error {