From: Jesse Luehrs Date: Mon, 20 Feb 2012 14:23:09 +0000 (-0600) Subject: stop recommending the register_implementation thing X-Git-Tag: 2.0500~48 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9b24290a8a352f8ed4ee67947984b5a991b71cbf;p=gitmo%2FMoose.git stop recommending the register_implementation thing --- diff --git a/lib/Moose/Cookbook/Meta/Labeled_AttributeTrait.pod b/lib/Moose/Cookbook/Meta/Labeled_AttributeTrait.pod index 74c85ff..1e9e394 100644 --- a/lib/Moose/Cookbook/Meta/Labeled_AttributeTrait.pod +++ b/lib/Moose/Cookbook/Meta/Labeled_AttributeTrait.pod @@ -11,6 +11,7 @@ __END__ package MyApp::Meta::Attribute::Trait::Labeled; use Moose::Role; + Moose::Util::meta_attribute_alias('Labeled'); has label => ( is => 'rw', @@ -18,9 +19,6 @@ __END__ predicate => 'has_label', ); - package Moose::Meta::Attribute::Custom::Trait::Labeled; - sub register_implementation {'MyApp::Meta::Attribute::Trait::Labeled'} - package MyApp::Website; use Moose; @@ -138,14 +136,13 @@ You can see that a trait is just a L. In this case, our role contains a single attribute, C