From: Hans Dieter Pearcey Date: Thu, 25 Jun 2009 23:08:33 +0000 (-0400) Subject: move _set inside the block where it matters X-Git-Tag: 0.89_02~121 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7470555869f5b314799925498b9d0089850a22c;p=gitmo%2FMoose.git move _set inside the block where it matters --- diff --git a/lib/Moose/AttributeHelpers/Trait/Counter.pm b/lib/Moose/AttributeHelpers/Trait/Counter.pm index 32dfbf9..e56189e 100644 --- a/lib/Moose/AttributeHelpers/Trait/Counter.pm +++ b/lib/Moose/AttributeHelpers/Trait/Counter.pm @@ -42,9 +42,9 @@ after 'check_handles_values' => sub { foreach my $method (keys %$method_constructors) { $handles->{$method . '_' . $attr_name} = $method; } - } - $self->_set_handles($handles); + $self->_set_handles($handles); + } }; no Moose::Role;