Guest User

Untitled

a guest
Jun 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def within_interval? date
  2. find :all, :conditions => ["(? BETWEEN start_date AND end_date) OR (end_date IS NULL) AND stay_id = ?", date, id]
  3. end
Add Comment
Please, Sign In to add comment