Permalink
Browse files

Merge pull request #13 from allanwhiteford/master

Problem with calling db method
  • Loading branch information...
2 parents ab587ed + 7fb2dcc commit ae38301e61a31cdc54d0d5e18e1dad9956d0afd0 @rodrigolive committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Mongoose.pm
View
@@ -78,7 +78,7 @@ sub connect {
my $self = shift;
my %p = @_ || %{ $self->_args };
my $key = delete( $p{'-class'} ) || 'default';
- $self->_connection( MongoDB::Connection->new(@_) )
+ $self->_connection( MongoDB::Connection->new(%p) )
unless ref $self->_connection;
$self->_db( { $key => $self->_connection->get_database( $p{db_name} ) } );
return $self->_db->{$key};

0 comments on commit ae38301

Please sign in to comment.