[PATCH 2/2] use methods, not package functions
Jens Rehsack
sno at netbsd.org
Thu Dec 27 15:58:20 GMT 2012
---
lib/Dancer/Session/Abstract.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Dancer/Session/Abstract.pm b/lib/Dancer/Session/Abstract.pm
index 319e601..5e27ada 100644
--- a/lib/Dancer/Session/Abstract.pm
+++ b/lib/Dancer/Session/Abstract.pm
@@ -48,7 +48,7 @@ sub reset {
# that the session ID is still generated.
sub init {
my ($self) = @_;
- $self->id(build_id());
+ $self->id($self->build_id());
}
# this method can be overwritten in any Dancer::Session::* module
@@ -87,7 +87,7 @@ sub read_session_id {
sub write_session_id {
my ($class, $id) = @_;
- my $name = session_name();
+ my $name = $class->session_name();
my %cookie = (
name => $name,
value => $id,
--
1.7.10.2 (Apple Git-33)
--------------070704020003070300070502--
More information about the dancer-users
mailing list