summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-06-24 13:41:55 -0500
committerJesse Luehrs <doy@tozt.net>2010-06-24 13:42:14 -0500
commite487cbac42aac4f6bded38ffc91b66e1d1d1ddc6 (patch)
tree5a155c9dd731e9d382de5866f55d235f8ebe02ee /lib
parentecd91561e832c88e486856d7e40d0b940d1bde5c (diff)
downloadmoosex-attribute-shorthand-e487cbac42aac4f6bded38ffc91b66e1d1d1ddc6.tar.gz
moosex-attribute-shorthand-e487cbac42aac4f6bded38ffc91b66e1d1d1ddc6.zip
make it work for role attributes
Diffstat (limited to 'lib')
-rw-r--r--lib/MooseX/Attribute/Shorthand.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MooseX/Attribute/Shorthand.pm b/lib/MooseX/Attribute/Shorthand.pm
index 12e57fa..aef1a0f 100644
--- a/lib/MooseX/Attribute/Shorthand.pm
+++ b/lib/MooseX/Attribute/Shorthand.pm
@@ -63,6 +63,9 @@ sub import {
class_metaroles => {
attribute => [$role->name],
},
+ role_metaroles => {
+ class_attribute => [$role->name],
+ }
);
}