ActionDispatch::Session::StaleSessionCheck (original) (raw)

Methods

E

L

S

Instance Public methods

Source: show | on GitHub

def load_session(env) stale_session_check! { super } end

Source: show | on GitHub

def stale_session_check! yield rescue ArgumentError => argument_error if argument_error.message =~ %r{undefined class/module ([\w:]*\w)} begin

  $1.constantize
rescue LoadError, NameError
  raise ActionDispatch::Session::SessionRestoreError
end
retry

else raise end end