# File lib/mongoid/contexts/enumerable.rb, line 268 def set_collection @collection = root.collection if root && !root.embedded? end