Permalink
Browse files

add `reload` method to ManyProxy

  • Loading branch information...
1 parent 487a6ba commit 72e8ab72f999a67a6fd22cb928ea3b662102922a @mislav committed Sep 20, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/mingo/many_proxy.rb
View
@@ -82,6 +82,11 @@ def delete(doc)
def loaded?
!!@loaded
end
+
+ def reload
+ @loaded = @join_loaded = nil
+ self
+ end
def find(selector = {}, options = {}, &block)
@model.find(selector, find_options.merge(options), &block)

0 comments on commit 72e8ab7

Please sign in to comment.