Skip to content
Browse files

using ->to_app

  • Loading branch information...
1 parent 33e2f00 commit 1f7df6015b89bf219e35e350faacc1159a96f4ce Zbigniew Lukasiak committed Nov 5, 2011
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/Plack/App/ResetPass.pm
  2. +1 −1 t/main.t
View
6 lib/Plack/App/ResetPass.pm
@@ -150,11 +150,13 @@ __END__
}
+ use Plack::Builder;
+
my $app = My::ResetPass->new;
- my $mounted_app = builder {
+ builder {
mount "/forgotten_pass" => builder {
- sub{ $app->call( shift ) };
+ $app->to_app;
};
};
View
2 t/main.t
@@ -28,7 +28,7 @@ my $app = My::ResetPass->new;
my $mounted_app = builder {
mount "/forgotten_pass" => builder {
- sub{ $app->call( shift ) };
+ $app->to_app;
};
};

0 comments on commit 1f7df60

Please sign in to comment.
Something went wrong with that request. Please try again.