mongoid/mongoid — Issue #1556: Query for a date range does not work
Author: epetre
Created: 2012-01-05 23:52:40+00:00
State: open

The following query does not work and it keeps giving a weird error:
keys must be strings or symbols

Session.where(:created_at.gte => (Date.today - 30), :created_at.lte => (Date.today).first