From: Shawn M Moore Date: Sun, 3 May 2009 20:38:19 +0000 (-0400) Subject: Don't use get_attribute_map X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=501e8f35f8ff75c77860a52ffd5db93085e4ee90;p=gitmo%2FPerl-Critic-Dynamic-Moose.git Don't use get_attribute_map --- diff --git a/lib/Perl/Critic/Policy/DynamicMoose/ProhibitPublicBuilders.pm b/lib/Perl/Critic/Policy/DynamicMoose/ProhibitPublicBuilders.pm index 073eac6..afa8215 100644 --- a/lib/Perl/Critic/Policy/DynamicMoose/ProhibitPublicBuilders.pm +++ b/lib/Perl/Critic/Policy/DynamicMoose/ProhibitPublicBuilders.pm @@ -18,9 +18,8 @@ sub violates_metaclass { my @violations; - my $attributes = $meta->get_attribute_map; - for my $name (keys %$attributes) { - my $attribute = $attributes->{$name}; + for my $name ($meta->get_attribute_list) { + my $attribute = $meta->get_attribute($name); my $builder; if (blessed($attribute)) {