Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- broadcastings = Broadcasting.find(:all, :conditions => ["airingdate <= NOW() and DATE_ADD(airingdate, INTERVAL duration MINUTE) >= NOW()"], :include => [:show, :channel])
- broadcastings = Broadcasting.find(:all, :conditions => ["airingdate <= ? and airingdate >= ?", now, now - 4.hours], :include => [:show, :channel])
Add Comment
Please, Sign In to add comment