# File lib/mongoid/relations/embedded/many.rb, line 288 def as_document [].tap do |attributes| target.each do |doc| attributes << doc.as_document end end end