Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix new_user problem

  • Loading branch information...
commit 58a2b36b9a399f20b3ea159365a8fe9255caaeea 1 parent a18bac2
@taweili taweili authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.