Skip to content

Instantly share code, notes, and snippets.

@hoffm
Last active December 23, 2015 22:39
Show Gist options
  • Save hoffm/6704956 to your computer and use it in GitHub Desktop.
Save hoffm/6704956 to your computer and use it in GitHub Desktop.
An important identity for users of ActiveRecord (and SQL) to keep in mind.
Model.find(1,2) == Model.find(2,1)
=> true
Model.find(1,2) == Model.find(2,1).reverse
=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment