mongodb/mongo-ruby-driver — pull request #174 by kamarcum (2013-03-12 15:57:03+00:00)
Title: Loosen type check for Mongo::Collection#aggregate

Mongo::Collection#aggregate was doing a strict arg.class == Array and arg.class == Hash. I changed this to use is_a? to make it easier to pass arguments like HashWithIndifferentAccess, which shouldn't interfere with the functionality.

A simple test is included.

Thanks!