Skip to content

Instantly share code, notes, and snippets.

@damon
Created December 30, 2008 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save damon/41453 to your computer and use it in GitHub Desktop.
Save damon/41453 to your computer and use it in GitHub Desktop.
def whack(objects)
result = {}
objects.each do |o|
result[o.send("table_name")] = o.send("delete_all")
end
result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment