From e487cbac42aac4f6bded38ffc91b66e1d1d1ddc6 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 24 Jun 2010 13:41:55 -0500 Subject: make it work for role attributes --- lib/MooseX/Attribute/Shorthand.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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], + } ); } -- cgit v1.2.3-54-g00ecf