Skip to content
Browse files

fix new_user problem

  • Loading branch information...
1 parent a18bac2 commit 58a2b36b9a399f20b3ea159365a8fe9255caaeea @taweili taweili committed Dec 4, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/authlogic_facebook_connect/session.rb
View
2 lib/authlogic_facebook_connect/session.rb
@@ -98,6 +98,8 @@ def validate_by_facebook_connect
#
# We assign it after the call to new in case the attribute is protected.
+ new_user = klass.new
+
if klass == facebook_user_class
new_user.send(:"#{facebook_uid_field}=", facebook_session.user.uid)
new_user.send(:"#{facebook_session_key_field}=", facebook_session.session_key)

0 comments on commit 58a2b36

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