Skip to content

Instantly share code, notes, and snippets.

@robclancy
Created January 25, 2015 06:51
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 robclancy/16620df7479e2d33fccf to your computer and use it in GitHub Desktop.
Save robclancy/16620df7479e2d33fccf to your computer and use it in GitHub Desktop.
posts = {}
Post.each do |post|
posts[post.id] = post
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment