-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
If a blank string is passed to a 'ne' query, the blank string is converted to nil.
<pre>
<code>
Product.where(:some_attribute.ne => '' )
becomes
find({:deleted_at=>
{"$exists"=>false}, :some_attribute=>{"$ne"=>nil}})
</code>
</pre>
which return records whose :some_attribute is ''.