Created
February 26, 2009 03:45
-
-
Save yappo/70640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: lib/HTTP/Session/Store/Test.pm | |
=================================================================== | |
--- lib/HTTP/Session/Store/Test.pm (revision 30519) | |
+++ lib/HTTP/Session/Store/Test.pm (working copy) | |
@@ -3,6 +3,15 @@ | |
use warnings; | |
use base qw/HTTP::Session::Store::OnMemory/; | |
+my $DATA = {}; | |
+sub new { | |
+ my $class = shift; | |
+ my %args = ref($_[0]) ? %{$_[0]} : @_; | |
+ # set default values | |
+ $args{data} ||= $DATA; | |
+ bless {%args}, $class; | |
+} | |
+ | |
1; | |
__END__ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment