ruby on rails - Unable to use current_user.id in faye extention -


hi using devise , faye. , want track online users. thought of including faye extension. in faye/faye_current_user.rb . when using current_user.id in faye_current_user.rb throwing undefined variable error.

if have anyother easy way fetch online users please me out. thank you

the problem "current_user" method devise isn't being called before method inside of faye_current_user.rb.

a working solution dependent upon file located , how set current_user before calling methods within file.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -