mongomatic 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mongomatic/cursor.rb +1 -1
- metadata +2 -2
data/lib/mongomatic/cursor.rb
CHANGED
|
@@ -9,7 +9,7 @@ module Mongomatic
|
|
|
9
9
|
@mongo_cursor = mongo_cursor
|
|
10
10
|
|
|
11
11
|
@mongo_cursor.public_methods(false).each do |meth|
|
|
12
|
-
next if self.methods.include?(meth.to_sym)
|
|
12
|
+
next if self.methods.collect { |meth| meth.to_sym }.include?(meth.to_sym)
|
|
13
13
|
(class << self; self; end).class_eval do
|
|
14
14
|
define_method meth do |*args|
|
|
15
15
|
@mongo_cursor.send meth, *args
|