Skip to content

Commit

Permalink
Change purge from override to around.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jun 17, 2010
1 parent 52fe958 commit 10f2cda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/WebGUI/Role/Asset/Subscribable.pm
Expand Up @@ -422,14 +422,14 @@ Subclass the method to remove the subscription group.
=cut

override purge => sub {
around purge => sub {
my $orig = shift;
my $self = shift;
my $options = shift;

my $group = $self->getSubscriptionGroup();
$group->delete if $group;

return super();
return $self->$orig($options, @_);
};

#----------------------------------------------------------------------------
Expand Down

0 comments on commit 10f2cda

Please sign in to comment.