mongomatic 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
|