Permalink
Browse files

Added hook to before_template call to get rid of the depreciation war…

…ning
  • Loading branch information...
mvickers committed Oct 28, 2011
1 parent 0c763e9 commit 59d021cb79612d888e0cf8cfc52bfb5f72186c18
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Dancer/Plugin/FlashMessage.pm
@@ -29,7 +29,7 @@ register flash => sub ($;$) {
return $value;
};
-before_template sub {
+hook before_template => sub {
shift->{$token_name} = { map { my $key = $_; my $value;
( $key, sub { defined $value and return $value;
my $flash = session($session_hash_key) || {};

0 comments on commit 59d021c

Please sign in to comment.