Method: MongoDoc::Attributes#_root=

Defined in:
lib/mongodoc/attributes.rb

#_root=(root) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/mongodoc/attributes.rb', line 26

def _root=(root)
  @_root = root
  _associations.each do|a|
    association = send(a)
    association._root = root if association
  end
end