Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created March 12, 2013 22:58
Show Gist options
  • Select an option

  • Save Heavyblade/5147881 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/5147881 to your computer and use it in GitHub Desktop.
irb(main):004:0> user = User.where(:email => "ami@hybridgroup.com").first
=> #<User _id: BSON::ObjectId('50fdb84635f40b000703712c'), api_key: "2e85426ffdb2777688286b22418d0fbb6b48bd56", created_at: 2013-01-21 21:51:02 UTC, email: "ami@hybridgroup.com", hashed_password: "2oBn9dRk4EucWpjHR/VUMDsufdUCgKGBpohBLJOR8do=\n", lang: "en", login_token: ["o*%Dj]fL<X`mn_@YL70<Y^)1]", "j.Pn*_*K?DS:y1Y@7KV]?_hY3", "WTHUQ\"7<f,?31,%lw<4U:?p^b", "4[,2wm'!ZO$dW)=!w,N,alDyN", "Wyu7tX-Yt1RgstTC)\"O%`y4%,"], name: "Ami Lum", nick: "amilum", oauth: {}, permission_level: 1, salt: "J^>lM'v\\=N*hG,q,u]o-", updated_at: 2013-03-12 22:51:01 UTC, verified: true>
irb(main):005:0> user.has?(:hybrid)
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment