Clarify the comment here, it was causing confusion
Tomas Doran [Tue, 31 Jan 2012 09:20:02 +0000 (09:20 +0000)]
lib/Catalyst/Plugin/Session/Test/Store.pm

index 52e6c96..d9b7ba3 100644 (file)
@@ -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;