Skip to content

Commit

Permalink
only use simple stash examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 17, 2015
1 parent 1e8bc13 commit 2976bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -882,8 +882,8 @@ HMAC-SHA1 signature verification will be automatically discarded.
my $hash = $c->stash;
my $foo = $c->stash('foo');
$c = $c->stash({foo => 'bar', baz => 'yada'});
$c = $c->stash(foo => 'bar', baz => 'yada');
$c = $c->stash({foo => 'bar'});
$c = $c->stash(foo => 'bar');
Non-persistent data storage and exchange for the current request, application
wide default values can be set with L<Mojolicious/"defaults">. Some stash
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -431,7 +431,7 @@ Alias for L<Mojolicious::Controller/"session">.
=head2 stash
%= stash 'foo'
% stash foo => 'bar', baz => 'yada';
% stash foo => 'bar';
Alias for L<Mojolicious::Controller/"stash">.
Expand Down

0 comments on commit 2976bac

Please sign in to comment.