lib/mongoid/finders.rb in mongoid-3.0.23 vs lib/mongoid/finders.rb in mongoid-3.1.0

- old
+ new

@@ -11,18 +11,26 @@ # These are methods defined on the criteria that should also be accessible # directly from the the class level. delegate \ :aggregates, :avg, + :distinct, :each, + :each_with_index, :extras, :find_and_modify, :find_or_create_by, :find_or_initialize_by, + :first_or_create, + :first_or_create!, + :first_or_initialize, + :for_js, + :geo_near, :includes, :map_reduce, :max, :min, + :pluck, :sum, :update, :update_all, to: :with_default_scope # Returns a count of records in the database.