Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get emails of users who have worked in a location over a time period (Shifts app)
user_emails = []
Shift.after_date( - 4.weeks).find_all_by_location_id(44).each do |sh|
user_emails <<
user_emails = user_emails.uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment