From: Andrew Rodland Date: Thu, 20 Jan 2011 15:49:38 +0000 (-0600) Subject: Add composition_class_roles X-Git-Tag: v0.23~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5c3523150eb0a313a610d05617886cd117488e7e;p=gitmo%2FMooseX-ClassAttribute.git Add composition_class_roles --- diff --git a/lib/MooseX/ClassAttribute/Trait/Role.pm b/lib/MooseX/ClassAttribute/Trait/Role.pm index c7b639d..084f9e7 100644 --- a/lib/MooseX/ClassAttribute/Trait/Role.pm +++ b/lib/MooseX/ClassAttribute/Trait/Role.pm @@ -31,6 +31,10 @@ sub _attach_class_attribute { $attribute->attach_to_role($self); } +sub composition_class_roles { + return 'MooseX::ClassAttribute::Trait::CompositeRole'; +} + 1; # ABSTRACT: A trait for roles with class attributes