X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FRole.pm;h=81208d50107bbe29eb8d0115c69a9acbdf5ba463;hb=34c8209c4eac1f2f710e1523ef3b3a248f7a08c8;hp=56b90b7a5017a6bd0bded74dafc3e09f9ca50d12;hpb=9ee0e57c8c1ca23a9de421bf3ecf9e73ba795898;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Role.pm b/lib/Mouse/Role.pm index 56b90b7..81208d5 100644 --- a/lib/Mouse/Role.pm +++ b/lib/Mouse/Role.pm @@ -49,7 +49,7 @@ sub has { } } else{ # has foo => (...) - $meta->add_attribute($_ => @_); + $meta->add_attribute($name => @_); } return; }