Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Last active December 22, 2015 01:28
Show Gist options
  • Save kristianfreeman/6396286 to your computer and use it in GitHub Desktop.
Save kristianfreeman/6396286 to your computer and use it in GitHub Desktop.
user = User.where(name: "Michael Jordan")
user.class == User # => false
user.class == ActiveRecord::Relation # => true
user # => [#<User id: 1, name: "Michael Jordan", sport: "Basketball">]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment