Guest User

Untitled

a guest
Jul 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. broadcastings = Broadcasting.find(:all, :conditions => ["airingdate <= NOW() and DATE_ADD(airingdate, INTERVAL duration MINUTE) >= NOW()"], :include => [:show, :channel])
  2.  
  3. broadcastings = Broadcasting.find(:all, :conditions => ["airingdate <= ? and airingdate >= ?", now, now - 4.hours], :include => [:show, :channel])
Add Comment
Please, Sign In to add comment