flatiron/resourceful — pull request #21 by slaskis (2011-11-23 14:35:43+00:00)
Title: [couchdb] Use lowercase for _byParents child_ids.

I found that when I create a one-to-many relationship using resourceful with `user.createPost()` it was stored through post_ids, not Post_ids as the couchdb map function assumes.

This wasn't caught in the tests because they create the objects with Article_ids manually (not through resourceful).

So this pull request makes it always lowercase. I've also added tests for this use case.

All tests passes for me.