
Empty DataMapper::Collection returns everything on chaining
Reported by Kabari | May 2nd, 2011 @ 05:30 PM
per: http://groups.google.com/group/datamapper/browse_thread/thread/305e...
TL;DR
For some reason, this 'Pasta.all(:flavor => [])' returns and empty collection, but this 'Pasta.all(:flavor => []).sauces' will return every sauce in the association, and ignores the empty array.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »