kraih/mango — pull request #13 by alexbyk (2014-05-01 23:16:06+00:00)
Title: fixed bug when methods of a Mango::Collection object passed Mango::Datab...

```perl
$collection->insert({foo => 2}, sub { my $self = shift; })
```
$self must be a Mango::Collection object, not Mango::Database. This commit fix it and add tests to avoid that in the future