Skip to content

Commit

Permalink
fix new_user problem
Browse files Browse the repository at this point in the history
  • Loading branch information
taweili committed Dec 3, 2009
1 parent a18bac2 commit 58a2b36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/authlogic_facebook_connect/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58a2b36

Please sign in to comment.