Skip to content

Instantly share code, notes, and snippets.

@gotascii
Created March 16, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotascii/2052647 to your computer and use it in GitHub Desktop.
Save gotascii/2052647 to your computer and use it in GitHub Desktop.
def cats(user_id, network_id)
email = "bob#{user_id}_#{network_id}@weird.com"
n = Network.find_or_create_by_email(email)
mu = MetaUser.find_or_create_by_email(email)
User.create do |u|
u.id = user_id
u.network = n
u.meta_user = mu
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment