lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.5.1 vs lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.6

- old
+ new

@@ -30,11 +30,11 @@ # user adds a few extra things to this method from Process # modules work like inheritance def save_oauth_session super - auth_session[:auth_attributes] = attributes.reject!{|k, v| v.blank? || !self.respond_to?(k)} unless is_auth_session? + auth_session[:auth_attributes] = attributes.reject!{|k, v| v.blank? || !self.respond_to?(k)} unless is_auth_session? end def redirect_to_oauth return has_token?(oauth_provider) ? false : super end @@ -55,10 +55,9 @@ if has_token?(oauth_provider) self.errors.add(:tokens, "you have already created an account using your #{token_class.service_name} account, so it") else self.access_tokens << token - self.active_token = token end end end end