Skip to content
Browse files

Twitter response structure changed .. user_info becomes info

  • Loading branch information...
1 parent fc5cdad commit 5d6c5c02a9ebda1a86f244c7e46c47a54cabf481 @rdsoze rdsoze committed Mar 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 episode-241/blog/app/models/user.rb
View
2 episode-241/blog/app/models/user.rb
@@ -3,7 +3,7 @@ def self.create_with_omniauth(auth)
create! do |user|
user.provider = auth["provider"]
user.uid = auth["uid"]
- user.name = auth["user_info"]["name"]
+ user.name = auth["info"]["name"]
end
end
end

0 comments on commit 5d6c5c0

Please sign in to comment.
Something went wrong with that request. Please try again.