Sha256: 86d764054ff8decf3e615bdb56879637cec2ecb4d57af210dc35632c80d3335f
Contents?: true
Size: 578 Bytes
Versions: 4
Compression:
Stored size: 578 Bytes
Contents
require 'action_dispatch/middleware/session/abstract_store' # When ORM was switched, but another ORM's model class still exists in session # (Devise saves User model to session), ActionDispatch raises ActionDispatch::Session::SessionRestoreError # and app can't be started unless you delete your browser's cookie data. # To prevent this situation, detect this problem here and reset session data # so user can make another login via Devise. ActionDispatch::Session::StaleSessionCheck.module_eval do def stale_session_check! yield rescue ArgumentError {} end end
Version data entries
4 entries across 4 versions & 1 rubygems