lib/mongoid/finders.rb in mongoid-2.0.0.rc.5 vs lib/mongoid/finders.rb in mongoid-2.0.0.rc.6

- old
+ new

@@ -4,10 +4,10 @@ # Delegate to the criteria methods that are natural for creating a new # criteria. [ :all_in, :any_in, :any_of, :asc, :ascending, :avg, :desc, :descending, :excludes, :limit, :max, :min, :not_in, :only, :order_by, - :skip, :sum, :where, :near ].each do |name| + :skip, :sum, :where, :update, :update_all, :near ].each do |name| define_method(name) do |*args| criteria.send(name, *args) end end