How to get a list of online users in Authlogic?

我与影子孤独终老i 提交于 2019-12-23 05:36:13

问题


I've added a last_request_at field to my user table in Ruby on Rails, so now I can call the authlogic method User.logged_in.count and it returns the correct value. But how do I get a list of all logged in users? Thanks for reading.


回答1:


User.logged_in.all ?



来源:https://stackoverflow.com/questions/3083129/how-to-get-a-list-of-online-users-in-authlogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!