Skip to content

Commit

Permalink
simplify flash examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 16, 2011
1 parent 4cce790 commit b7710b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -765,11 +765,7 @@ Gracefully end WebSocket connection or long poll stream.
$c = $c->flash({foo => 'bar'});
$c = $c->flash(foo => 'bar');
Data storage persistent for the next request, stored in the session.
$c->flash->{foo} = 'bar';
my $foo = $c->flash->{foo};
delete $c->flash->{foo};
Data storage persistent only for the next request, stored in the session.
=head2 C<on_finish>
Expand Down

0 comments on commit b7710b1

Please sign in to comment.