From: Dave Rolsky Date: Mon, 21 Jan 2008 23:54:52 +0000 (+0000) Subject: Use add_attribute rather than _process_attribute to add attributes X-Git-Tag: 0.04~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8f68e6189f9cad37c4edf9a3a133c8642dd7b54;p=gitmo%2FMooseX-ClassAttribute.git Use add_attribute rather than _process_attribute to add attributes --- diff --git a/lib/MooseX/ClassAttribute.pm b/lib/MooseX/ClassAttribute.pm index d6170f9..b2e04dc 100644 --- a/lib/MooseX/ClassAttribute.pm +++ b/lib/MooseX/ClassAttribute.pm @@ -34,7 +34,7 @@ sub process_class_attribute ## no critic RequireArgUnpacking my $container_pkg = _make_container_class( $caller, @parents ); my $container_meta = $container_pkg->meta(); - $container_meta->_process_attribute(@_); + $container_meta->add_attribute(@_); for my $meth ( grep { $_ ne 'instance' } $container_meta->get_method_list() ) {