lib/ddr/index/query.rb in ddr-models-3.0.0.beta.4 vs lib/ddr/index/query.rb in ddr-models-3.0.0.beta.6

- old
+ new

@@ -50,7 +50,16 @@ def build(&block) QueryBuilder.new(self, &block) self end + def ==(other) + other.instance_of?(self.class) && + other.q == self.q && + other.fields == self.fields && + other.filters == self.filters && + other.rows == self.rows && + other.sort == self.sort + end + end end