aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel
diff options
context:
space:
mode:
authormatthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-08-01 07:10:19 +0000
committermatthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-08-01 07:10:19 +0000
commit003da5f65435de36c070cae5bf624be693a366ea (patch)
treea07936a34d3306b9be1e9c7d8e2ccbb209166d60 /lib/Reaction/InterfaceModel
parentecf7a8603021fadc50e7de2c1626584bd98d5552 (diff)
downloadreaction-003da5f65435de36c070cae5bf624be693a366ea.tar.gz
reaction-003da5f65435de36c070cae5bf624be693a366ea.zip
make IM action $ctx lazy_fail rather than required
Diffstat (limited to 'lib/Reaction/InterfaceModel')
-rw-r--r--lib/Reaction/InterfaceModel/Action.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reaction/InterfaceModel/Action.pm b/lib/Reaction/InterfaceModel/Action.pm
index 7a57d78..70eb0d1 100644
--- a/lib/Reaction/InterfaceModel/Action.pm
+++ b/lib/Reaction/InterfaceModel/Action.pm
@@ -12,7 +12,7 @@ use namespace::clean -except => [ qw(meta) ];
has target_model => (is => 'ro', required => 1,
metaclass => 'Reaction::Meta::Attribute');
-has ctx => (isa => 'Catalyst', is => 'ro', required => 1,
+has ctx => (isa => 'Catalyst', is => 'ro', lazy_fail => 1,
metaclass => 'Reaction::Meta::Attribute');
sub parameter_attributes {
shift->meta->parameter_attributes;