mongoid/mongoid — pull request #3209 by mrjlynch (2013-08-09 06:20:50+00:00)
Title: Support for as_document with has_many relationships

I have edided this version of mongoid to add the method "as_document" to support has_many relationships

Without this method the error is returned:

"undefined method as_document for array"

When this is called:

@parent.as_document

When @parent has_many @children