Protecting has and belongs to many relations from trying to pull against a null set of ids.
Protecting has and belongs to many relations from trying to pull against a null set of ids.

bigbenli/mongoid,bigbenli/mongoid