Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションでAuthlogicgemを使用していますが、15分間操作がないと、ユーザーは自動的にログアウトする必要があります。誰かがこれを行う方法を教えてもらえますか?
ユーザーモデルの場合:
acts_as_authentic do |c| c.logged_in_timeout(5.minutes) end
UserSessionモデルの場合:
self.logout_on_timeout = true