Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edit app/models/moviegoer.rb to look like this:
- class Moviegoer < ActiveRecord::Base
- attr_accessible :uid, :provider, :name # see text for explanation
- def self.create_with_omniauth(auth)
- Moviegoer.create!(
- :provider => auth["provider"],
- :uid => auth["uid"],
- :name => auth["info"]["name"])
- end
- end
Add Comment
Please, Sign In to add comment