From: Tomas Doran Date: Sun, 24 Jan 2010 21:30:54 +0000 (+0000) Subject: No need for an around modifier, can quite happily be a before X-Git-Tag: 0.07_01~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-View-Component-SubInclude.git;a=commitdiff_plain;h=1869d78137e571f1fa67ae71818501845546b5a9 No need for an around modifier, can quite happily be a before --- diff --git a/lib/Catalyst/View/Component/SubInclude.pm b/lib/Catalyst/View/Component/SubInclude.pm index f568483..0585a4c 100644 --- a/lib/Catalyst/View/Component/SubInclude.pm +++ b/lib/Catalyst/View/Component/SubInclude.pm @@ -120,16 +120,13 @@ around 'new' => sub { $self; }; -around 'render' => sub { - my $next = shift; +before 'render' => sub { my ($self, $c, @args) = @_; weaken $c; $c->stash->{subinclude} = sub { $self->_subinclude( $c, @_ ) }; $c->stash->{subinclude_using} = sub { $self->_subinclude_using( $c, @_ ) }; - - $self->$next( $c, @args ); }; sub set_subinclude_plugin {