From: Matt S Trout Date: Tue, 22 Jan 2013 16:10:13 +0000 (+0000) Subject: delegate run_if_script properly X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a2cad2be778cc9bc06303a1748edb7394f19d2d3;p=scpubgit%2FApp-SCS.git delegate run_if_script properly --- diff --git a/lib/App/SCS.pm b/lib/App/SCS.pm index a4d7b02..af606f1 100644 --- a/lib/App/SCS.pm +++ b/lib/App/SCS.pm @@ -84,7 +84,7 @@ sub load_plugin { sub run_if_script { my $self = shift; if (caller(1)) { - return 1; + return $self->web->to_psgi_app; } else { return $self->run; }