Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created May 9, 2012 17:04
Show Gist options
  • Save jraczak/2646749 to your computer and use it in GitHub Desktop.
Save jraczak/2646749 to your computer and use it in GitHub Desktop.
<<< Query venue for venue scores, select user_ids from returned venue_scores >>>
1.9.3-p125 :011 > venue.venue_scores.all(:select => :user_id)
VenueScore Load (23.2ms) SELECT user_id FROM "venue_scores" WHERE "venue_scores"."venue_id" = 5
=> [#<VenueScore user_id: 1>, #<VenueScore user_id: 2>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment