lib/mongodoc/associations/document_proxy.rb in mongodoc-0.2.2 vs lib/mongodoc/associations/document_proxy.rb in mongodoc-0.2.4
- old
+ new
@@ -1,9 +1,12 @@
module MongoDoc
module Associations
- class DocumentProxy < ProxyBase
+ class DocumentProxy
+ include ProxyBase
attr_reader :document
+
+ delegate :to_bson, :id, :to => :document
def _root=(root)
@_root = root
document._root = root if is_document?(document)
end