From: Tomas Doran Date: Tue, 31 Jan 2012 09:20:02 +0000 (+0000) Subject: Clarify the comment here, it was causing confusion X-Git-Tag: v0.32^2~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=commitdiff_plain;h=7febc064f8a0b1d9eb21eb6a84cf9fedc4262b50 Clarify the comment here, it was causing confusion --- diff --git a/lib/Catalyst/Plugin/Session/Test/Store.pm b/lib/Catalyst/Plugin/Session/Test/Store.pm index 52e6c96..d9b7ba3 100644 --- a/lib/Catalyst/Plugin/Session/Test/Store.pm +++ b/lib/Catalyst/Plugin/Session/Test/Store.pm @@ -92,7 +92,8 @@ sub import { @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg; - { __PACKAGE__->setup; }; # INSANE HACK + { __PACKAGE__->setup; }; # Extra block here is an INSANE HACK to get inlined constructor + # (i.e. to make B::Hooks::EndOfScope fire) } { @@ -130,7 +131,7 @@ sub import { @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg; - { __PACKAGE__->setup; }; # INSANE HACK + { __PACKAGE__->setup; }; # INSANE HACK (the block - as above) } use Test::More;