Skip to content

Instantly share code, notes, and snippets.

@Sacristan
Created January 22, 2016 18:56
Show Gist options
  • Save Sacristan/0563ea14014acee848c1 to your computer and use it in GitHub Desktop.
Save Sacristan/0563ea14014acee848c1 to your computer and use it in GitHub Desktop.
Artist.where(id: Album.select(:artist_id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment