更新时间:2022-02-18 02:34:20
timeoutable
是指登录会话超时。不需要额外的列,只需将其添加到您的模型中。
timeoutable
refers to the login session timeout. No extra columns are needed, just add it to your model.
可暂存
挂钩包含所有魔法: https://github.com/plataformatec/devise/blob/master/lib /devise/hooks/timeoutable.rb )
The timeoutable
hook contains all the magic (source: https://github.com/plataformatec/devise/blob/master/lib/devise/hooks/timeoutable.rb)