Methods
Instance Public methods
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 54 54: def stale_session_check! 55: yield 56: rescue ArgumentError => argument_error 57: if argument_error.message =~ %r{undefined class/module ([\w:]*\w)} 58: begin 59: # Note that the regexp does not allow $1 to end with a ':' 60: $1.constantize 61: rescue LoadError, NameError => const_error 62: raise ActionDispatch::Session::SessionRestoreError, 63: "Session contains objects whose class definition isn't available.\n" + 64: "Remember to require the classes for all objects kept in the session.\n" + 65: "(Original exception: #{const_error.message} [#{const_error.class}])\n" 66: end 67: retry 68: else 69: raise 70: end 71: end