lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.4.03 vs lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.4.04

- old
+ new

@@ -30,10 +30,10 @@ # 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?} 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