summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-03-04 06:17:21 +0100
committerfranck cuny <franck@lumberjaph.net>2010-03-04 06:17:21 +0100
commit1a5f4c15f21bc6b161af4031d3b70c53fc5e148b (patch)
treedd1274b3722904ac47c6bc105802f20ebb40388a
parentrewrite (diff)
downloadmoosex-privacy-1a5f4c15f21bc6b161af4031d3b70c53fc5e148b.tar.gz
add traits registration
-rw-r--r--lib/MooseX/Privacy/Meta/Class.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MooseX/Privacy/Meta/Class.pm b/lib/MooseX/Privacy/Meta/Class.pm
index 3e76a33..71bfa0a 100644
--- a/lib/MooseX/Privacy/Meta/Class.pm
+++ b/lib/MooseX/Privacy/Meta/Class.pm
@@ -6,6 +6,12 @@ use Moose::Meta::Class;
 with qw/MooseX::Privacy::Meta::Class::Private
     MooseX::Privacy::Meta::Class::Protected/;
 
+package Moose::Meta::Attribute::Custom::Trait::Private;
+sub register_implementation { 'MooseX::Privacy::Trait::Private' }
+
+package Moose::Meta::Attribute::Custom::Trait::Protected;
+sub register_implementation { 'MooseX::Privacy::Trait::Protected' }
+
 1;
 __END__