Skip to content

Commit

Permalink
hide from pod coverage config attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
diegok committed Sep 15, 2012
1 parent 3695e0f commit 7a1d046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Plugin/Resque.pm
Expand Up @@ -5,14 +5,14 @@ use strict;

#ABSTRACT: Mojolicious helper for sending jobs to a Resque queue.

has config => sub {{}};
has resque => sub { Resque->new(%{shift->config}) };
has _config => sub {{}};
has resque => sub { Resque->new(%{shift->_config}) };

sub register {
my ( $self, $app, $cfg ) = @_;
$cfg ||= {};
my $helper = delete $cfg->{helper} || 'resque';
$self->config($cfg);
$self->_config($cfg);

$app->helper( $helper => sub {
my $c = shift;
Expand Down

0 comments on commit 7a1d046

Please sign in to comment.