-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
While upgrading to Mongoid 3, I noticed a good amount of my app broke 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.