Created
February 14, 2013 08:26
-
-
Save caseywatts/4951330 to your computer and use it in GitHub Desktop.
Run this in a pry/irb session, with the Shifts database loaded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
profiles = UserProfile.all.select{|profile| profile.user.is_active?(Department.first)} | |
emails = [] | |
profiles.each do |profile| | |
if profile.photo_file_name == nil | |
emails << profile.user.email | |
puts profile.user.email | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment