Posted By

zackfern on 11/17/10


Tagged

rails activerecord


Versions (?)

Find ActiveRecord Object Older than One Week Old


 / Published in: Rails
 

  1. @objects = Object_Name.where("created_at < :week", {:week => 1.week.ago})

Report this snippet  

You need to login to post a comment.