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
Post a Comment