Fixed long poling without session user.

This commit is contained in:
Martin Edenhofer 2015-12-13 09:40:39 +01:00
parent 9cd3542d72
commit 4adf2e3750

View file

@ -18,7 +18,7 @@ class LongPollingController < ApplicationController
params['data'] = {} params['data'] = {}
end end
session_data = {} session_data = {}
if current_user.id if current_user && current_user.id
session_data = { 'id' => current_user.id } session_data = { 'id' => current_user.id }
end end