Skip to content

Commit

Permalink
Moose override for paste (Post only)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Apr 7, 2010
1 parent ee725b0 commit 7ba8924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/WebGUI/Asset/Post.pm
Expand Up @@ -989,10 +989,10 @@ Extends the master method to handle incrementing replies.
=cut

sub paste {
override paste => sub {
my $self = shift;

$self->SUPER::paste(@_);
super();

# First, figure out what Thread we're under
my $thread = $self->getLineage( [ qw{ self ancestors } ], {
Expand Down Expand Up @@ -1024,7 +1024,7 @@ sub paste {

# Recount the replies under the thread.
$thread->sumReplies;
}
};

#-------------------------------------------------------------------

Expand Down

0 comments on commit 7ba8924

Please sign in to comment.