lib/cql/map_reduce.rb in cql-1.4.0 vs lib/cql/map_reduce.rb in cql-1.4.1
- old
+ new
@@ -4,13 +4,16 @@
require 'cql/dsl'
module CQL
+ # Not a part of the public API. Subject to change at any time.
class MapReduce
extend Dsl
+
+ # Recursively gathers all models that match the given targets and filters
def self.gather_objects(current_object, target_classes, filters)
gathered_objects = Array.new.tap { |gathered_objects| collect_all_in(target_classes, current_object, gathered_objects) }
if filters
filters.each do |filter|