projects
/
gitmo/MooseX-ClassAttribute.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8a44b0a
)
Add composition_class_roles
Andrew Rodland [Thu, 20 Jan 2011 15:49:38 +0000 (09:49 -0600)]
lib/MooseX/ClassAttribute/Trait/Role.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/ClassAttribute/Trait/Role.pm
b/lib/MooseX/ClassAttribute/Trait/Role.pm
index
c7b639d
..
084f9e7
100644
(file)
--- 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