# File lib/mongoid/criteria.rb, line 99 def ==(other) case other when Criteria self.selector == other.selector && self.options == other.options when Enumerable return (execute.entries == other) else return false end end