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
Post a Comment