Skip to content

Commit

Permalink
…e6f78c/lib/Mojolicious/Plugins.pm removed passing $self to plugin hooks
  • Loading branch information
tmueller committed Jun 6, 2011
1 parent fac1f5c commit 39d3af1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -52,7 +52,7 @@ sub register {

$app->plugins->add_hook(
after_static_dispatch => sub {
my ($self, $c) = @_;
my ($c) = @_;

return if $c->res->code;

Expand Down
2 changes: 1 addition & 1 deletion lib/Bootylicious/Plugin/GoogleAnalytics.pm
Expand Up @@ -16,7 +16,7 @@ sub register {

$app->plugins->add_hook(
after_dispatch => sub {
my ($self, $c) = @_;
my ($c) = @_;

return unless $c->res->code && $c->res->code == 200;

Expand Down
4 changes: 2 additions & 2 deletions lib/Bootylicious/Plugin/PageCache.pm
Expand Up @@ -46,7 +46,7 @@ sub _cache_file {
}

sub _cache_hit {
my ($self, $c, $conf) = @_;
my ($c, $conf) = @_;

return unless $c->req->method eq 'GET';

Expand All @@ -70,7 +70,7 @@ sub _cache_hit {
}

sub _cache_response {
my ($self, $c, $conf) = @_;
my ($c, $conf) = @_;

return unless $c->req->method eq 'GET';

Expand Down
2 changes: 1 addition & 1 deletion lib/Bootylicious/Plugin/Pingback.pm
Expand Up @@ -16,7 +16,7 @@ sub register {

$app->plugins->add_hook(
after_dispatch => sub {
my ($self, $c) = @_;
my ($c) = @_;

return unless $c->req->method =~ m/GET|HEAD/;

Expand Down

0 comments on commit 39d3af1

Please sign in to comment.