Skip to content

Instantly share code, notes, and snippets.

@jmscholen
Last active August 29, 2015 14:16
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 jmscholen/273cbee40cfe2f6331b9 to your computer and use it in GitHub Desktop.
Save jmscholen/273cbee40cfe2f6331b9 to your computer and use it in GitHub Desktop.
SomeList.find(:all, :conditions => ["some_id = ?", some_object.attribute_of_some_object.id])
SomeList.where(some_id: some_object.attribute_of_some_object.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment