Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Filter does not work with mongoid #60

Closed
kymmt opened this Issue · 0 comments

1 participant

@kymmt

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].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.