Make gross construct ever so slightly less gross in does()
Dave Rolsky [Tue, 21 Oct 2008 18:01:24 +0000 (18:01 +0000)]
lib/Moose/Meta/Attribute.pm

index 50416f0..dc96d66 100644 (file)
@@ -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 {