mongoid/origin — pull request #55 by flexoid (2012-11-10 07:35:00+00:00)
Title: Array of fields as argument to only and without

Allow to pass array of fields as argument to `only` and `without` methods

Now you can call this methods in two ways:

query.only(:first, :second)
query.without(:first, :second)

query.only([:first, :second])
query.without([:first, :second])

Also it affects mongoid. It was possible to call exclusively `only` with array because it's overriden in Criteria to specify additional behavior, but `without` wasn't. Now you can use both of them with array argument.