[Catalyst-commits] r14253 - Catalyst-Plugin-Session/0.00/trunk/lib/Catalyst/Plugin/Session/Test

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Tue Jan 31 09:20:02 GMT 2012


Author: t0m
Date: 2012-01-31 09:20:02 +0000 (Tue, 31 Jan 2012)
New Revision: 14253

Modified:
   Catalyst-Plugin-Session/0.00/trunk/lib/Catalyst/Plugin/Session/Test/Store.pm
Log:
Clarify the comment here, it was causing confusion

Modified: Catalyst-Plugin-Session/0.00/trunk/lib/Catalyst/Plugin/Session/Test/Store.pm
===================================================================
--- Catalyst-Plugin-Session/0.00/trunk/lib/Catalyst/Plugin/Session/Test/Store.pm	2012-01-25 18:41:50 UTC (rev 14252)
+++ Catalyst-Plugin-Session/0.00/trunk/lib/Catalyst/Plugin/Session/Test/Store.pm	2012-01-31 09:20:02 UTC (rev 14253)
@@ -92,7 +92,8 @@
 
         @{ __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 @@
 
         @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg;
 
-        { __PACKAGE__->setup; }; # INSANE HACK
+        { __PACKAGE__->setup; }; # INSANE HACK (the block - as above)
     }
 
     use Test::More;




More information about the Catalyst-commits mailing list