From: Dave Rolsky Date: Mon, 14 Sep 2009 20:32:09 +0000 (-0500) Subject: Ignore meta in a method provider's list of provided methods. X-Git-Tag: 0.22~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b8bf95af999733ebc55c7ab22d3e46bed1fb805;p=gitmo%2FMooseX-AttributeHelpers.git Ignore meta in a method provider's list of provided methods. --- diff --git a/ChangeLog b/ChangeLog index 45c9ff2..c176804 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ Revision history for Perl extension MooseX-AttributeHelpers +0.22 + - Fix to work with Moose 0.90. Ignore meta when auto-providing a method + provider's methods. + 0.21 Sun July 19, 2009 - Add length to String (Florian Ragwitz). - Specify build dependency on Test::Moose (Closes RT#47258) (Florian Ragwitz). diff --git a/lib/MooseX/AttributeHelpers/Trait/Base.pm b/lib/MooseX/AttributeHelpers/Trait/Base.pm index fbdfd9b..4294e77 100644 --- a/lib/MooseX/AttributeHelpers/Trait/Base.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Base.pm @@ -45,7 +45,8 @@ has 'method_constructors' => ( return +{ map { $_ => $method_provider->get_method($_) - } $method_provider->get_method_list + } + grep { $_ ne 'meta' } $method_provider->get_method_list }; }, );