mongoid/mongoid — pull request #2083 by jonhyman (2012-06-09 22:35:46+00:00)
Title: Allowing Criteria#only to accept an array in addition to being variadic.

While upgrading to Mongoid 3, I noticed a good amount of my coding breaking because I had an array for Criteria#only. E.g., `Band.only([:name, :likes])` instead of it being variadic, `Band.only(:name, :likes)`.

This pull request allows the function to accept both forms.