Created
December 8, 2014 20:34
-
-
Save mrbrdo/b90781802ef60cac9f70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.select_map(:id) | |
# => [2] | |
User.select_map([:id, :email]) | |
# => [[2, "[email protected]"]] | |
User.select_hash(:id, :email) | |
# => {2=>"[email protected]"} | |
User.select(:id, :email).naked.all | |
# => [{:id=>2, :email=>"[email protected]"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment