whoops; if no contact neopets username, return nil

This commit is contained in:
Emi Matchu 2014-04-25 23:04:59 -05:00
parent dd0a3cd350
commit ebb0a75b72

View file

@ -101,7 +101,7 @@ class User < ActiveRecord::Base
end end
def contact_neopets_username def contact_neopets_username
contact_neopets_connection.neopets_username contact_neopets_connection.try(:neopets_username)
end end
def self.find_or_create_from_remote_auth_data(user_data) def self.find_or_create_from_remote_auth_data(user_data)