lib/mongodoc/associations/collection_proxy.rb in mongodoc-0.2.2 vs lib/mongodoc/associations/collection_proxy.rb in mongodoc-0.2.4
- old
+ new
@@ -1,9 +1,11 @@
# Thanks Sandro!
# http://github.com/sandro
module MongoDoc
module Associations
- class CollectionProxy < ProxyBase
+ class CollectionProxy
+ include ProxyBase
+
# List of array methods (that are not in +Object+) that need to be
# delegated to +collection+.
ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }
# List of additional methods that must be delegated to +collection+.