Guest User

Untitled

a guest
Apr 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def self.find_latest(*args)
  2. with_scope(:find => {:conditions => ["published_on <= :today", {:today => Time.now.strftime('%Y-%m-%d')}]}) do
  3. find(*args)
  4. end
  5. end
Add Comment
Please, Sign In to add comment