aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJustin Hunter <justin.d.hunter@gmail.com>2010-10-29 09:52:50 -0700
committerJustin Hunter <justin.d.hunter@gmail.com>2010-10-29 09:52:50 -0700
commit79d94ae52cb26cea02d99e969e1df7569ef045aa (patch)
tree8d52072dadeef9f6e6199a1104feaa926c87ba11 /lib
parente5f405d6a6f1987393d3f82ef59151222036cdf0 (diff)
downloadreaction-79d94ae52cb26cea02d99e969e1df7569ef045aa.tar.gz
reaction-79d94ae52cb26cea02d99e969e1df7569ef045aa.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Reaction/Role/Meta/Attribute.pm8
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;