Subject: | Patch to add authenticate() function |
Date: | Mon, 23 Jan 2012 12:56:08 -0500 |
To: | bug-Catalyst-Model-MongoDB [...] rt.cpan.org |
From: | Matthew Keller <kellermg [...] gmail.com> |
Hi,
I added the below to Catalyst/Model/MongoDB.pm to pass through the
MongoDB::Connection::authenticate function. Without this, there is no
way to [re]authenticate after the initial connection, or it
authenticate to multiple databases within the same model. Thank SO
MUCH for this awesome module, however, as it makes my
Catalyst-coding-with-mongoDB life so much easier!
sub authenticate {
my( $self, @params ) = @_;
return $self->connection->authenticate(@params);
}