Filter does not work with mongoid #60

kymmt opened this Issue Nov 22, 2012 · 0 comments


None yet
1 participant

kymmt commented Nov 22, 2012

I'm using Rails 3.2.8 with Mongoid.

I tried to use :filter => :session_hash but it didn't work.

everytime I hit F5, the count increment in the view.

when I look at query in logs, i get this

database=mydb_development command={:count=>"impressions", :query=> {"impressionable_id"=>"50a720712b225bd8e2000001", "impressionable_type"=>"Mymodel", "impressionable_field"=>{"$in"=>[:impressions, nil]}, "session_hash"=>{"$ne"=>nil}}} (1.6191ms)

data insertion have done just fine, and I could get request.session_options[:id].

johnmcaliley added a commit that referenced this issue Apr 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment