diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Reaction/Role/Meta/Attribute.pm | 8 |
1 files changed, 5 insertions, 3 deletions
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; |