Skip to content

Instantly share code, notes, and snippets.

@andrewhl
Created December 2, 2012 07:28
Show Gist options
  • Save andrewhl/4187602 to your computer and use it in GitHub Desktop.
Save andrewhl/4187602 to your computer and use it in GitHub Desktop.
def joined_event? event_id
self.accounts.any? do |account|
if account.event
account.event.id == event_id
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment