ruby on rails - how to reference another attribute mongoid selection :created_at.gte => :some_other_timestamp -


with mongoid on rails 3 app

i want run comparison query such

model.where(:created_at.gte => (:some_other_timestamp))

try using javascript expression inside query ($where), one:

model.where('this.created_at >= this.some_other_timestamp') 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -