Skip to content

Instantly share code, notes, and snippets.

@dannytip
Created May 28, 2010 14:21
Show Gist options
  • Save dannytip/417202 to your computer and use it in GitHub Desktop.
Save dannytip/417202 to your computer and use it in GitHub Desktop.
ret = {}
DefaultPackage.all.each do |package|
ret.merge({package.name.to_sym => package.get_products_wearing})
end
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment