From 79d94ae52cb26cea02d99e969e1df7569ef045aa Mon Sep 17 00:00:00 2001 From: Justin Hunter Date: Fri, 29 Oct 2010 09:52:50 -0700 Subject: per http://search.cpan.org/dist/Moose/lib/Moose/Manual/Delta.pod#1.09, legal_options_for_inheritance has been replaced by illegal_options_for_inheritance we don't need to add anything to illegal, as we were only adding to legal --- lib/Reaction/Role/Meta/Attribute.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/Reaction/Role/Meta/Attribute.pm b/lib/Reaction/Role/Meta/Attribute.pm index 512cbbb..45ad927 100644 --- a/lib/Reaction/Role/Meta/Attribute.pm +++ b/lib/Reaction/Role/Meta/Attribute.pm @@ -6,9 +6,11 @@ use Moose::Role; has lazy_fail => (is => 'ro', reader => 'is_lazy_fail', required => 1, default => 0); -around legal_options_for_inheritance => sub { - return (shift->(@_), qw/valid_values/); -}; +if ( $Moose::VERSION < 1.09 ) { + around legal_options_for_inheritance => sub { + return (shift->(@_), qw/valid_values/); + }; +} around _process_options => sub { my $super = shift; -- cgit v1.2.3-54-g00ecf