lib/mongo_adapter/conditions.rb in dm-mongo-adapter-0.2.0.pre3 vs lib/mongo_adapter/conditions.rb in dm-mongo-adapter-0.6.0

- old
+ new

@@ -68,11 +68,10 @@ # Checks if a given operand is supported by MongoDB. # # Comparisons not current supported are: # # * $nin with range - # * negated regexp comparison (see: http://jira.mongodb.org/browse/SERVER-251) # # @param [DataMapper::Query::Conditions::AbstractOperation, DataMapper::Query::Conditions::AbstractComparison] operand # An operation to be made suitable for use with Mongo # # @return [Boolean] @@ -80,13 +79,9 @@ # @api private def not_supported?(operand) case operand when OrOperation true - when RegexpComparison - if operand.negated? - true - end when InclusionComparison if operand.negated? true end else