Permalink
Browse files

only call prepare/finalize when in compat mode

  • Loading branch information...
1 parent 3dfa4c6 commit 1ac6ecf21eba59ec2037204b60032aed39c8fb9f @jrockway committed Feb 10, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Catalyst/Plugin/Session/HMAC.pm
@@ -147,17 +147,17 @@ sub prepare_hmac_session {
$c->_prepare_empty_hmac_session;
}
- if($c->can('prepare_session')){
+ if($c->isa('Catalyst::Plugin::Session::HMAC::Compat')){
$c->prepare_session(@_);
}
-
+
return;
}
sub finalize_hmac_session {
my $c = shift;
- if($c->can('finalize_session')){
+ if($c->isa('Catalyst::Plugin::Session::HMAC::Compat')){
$c->finalize_session(@_);
}

0 comments on commit 1ac6ecf

Please sign in to comment.