Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Last active January 13, 2018 22:39
Show Gist options
  • Save paulcsmith/0a511ab3db994e7b43ad48b8e3dba4a2 to your computer and use it in GitHub Desktop.
Save paulcsmith/0a511ab3db994e7b43ad48b8e3dba4a2 to your computer and use it in GitHub Desktop.
How to query associations
PostQuery.new.comments.rating.gt(4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment