From ebb0a75b72b1823dc2b4f5f0948682f503b69e4e Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 25 Apr 2014 23:04:59 -0500 Subject: [PATCH] whoops; if no contact neopets username, return nil --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 84b56a1c..b52260a5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -101,7 +101,7 @@ class User < ActiveRecord::Base end def contact_neopets_username - contact_neopets_connection.neopets_username + contact_neopets_connection.try(:neopets_username) end def self.find_or_create_from_remote_auth_data(user_data)