projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
rewriting ->component and friends to use BB. Completely broken
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Service
/
WithContext.pm
diff --git
a/lib/Catalyst/Service/WithContext.pm
b/lib/Catalyst/Service/WithContext.pm
index
cd560c7
..
433e1aa
100644
(file)
--- a/
lib/Catalyst/Service/WithContext.pm
+++ b/
lib/Catalyst/Service/WithContext.pm
@@
-19,7
+19,7
@@
around 'get' => sub {
my $instance = $self->$orig(%params);
my $ac_sub = $self->accept_context_sub;
- if ( $instance->can($ac_sub) ) {
+ if ( eval { $instance->can($ac_sub) } ) {
return $instance->$ac_sub( @$context );
}