Improved error handling.

This commit is contained in:
Martin Edenhofer 2015-08-19 01:02:41 +02:00
parent e2b510313a
commit ee5e084b63

View file

@ -184,7 +184,7 @@ EventMachine.run {
if data['action'] == 'login'
# get user_id
if data['session_id']
if data && data['session_id']
session = ActiveRecord::SessionStore::Session.find_by( session_id: data['session_id'] )
end