mongoid/mongoid — Issue #1374: Symbol extensions (.ne, .eq, .in etc.) in criteria stopped working
Author: alistairholt
Created: 2011-10-23 23:23:25+00:00
State: open

Hello,

After doing a recent bundle update I've now found that the symbol extension queries like BlogPost.where(:published_at.ne => nil) have stopped working and are producing 'TypeError: keys must be strings or symbols' errors. I'm currently using the following gems; mongo 1.4.1, bson/bson_ext 1.4.1 and mongoid 2.3.2 and I'm running Ruby 1.9.2 p180.

The Mongoid criteria that gets created for the above example is as follows:

=>nil},
options: {},
class: BlogPost,
embedded: false>

So to me it looks like there is a problem when it's generating the selector?

Thanks