Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Forked from damon/gist:41453
Created December 30, 2008 00:43
Show Gist options
  • Save technicalpickles/41458 to your computer and use it in GitHub Desktop.
Save technicalpickles/41458 to your computer and use it in GitHub Desktop.
def whack(objects)
objects.inject({}) do |results, o|
results[o.table_name] = o.delete_all
results
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment