Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

swallow error when can't unmarshall object from session

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 4d986c4a101a473ea83316931e316c7dbdfc531a 1 parent 86a5271
@bzanchet bzanchet authored josevalim committed
View
3  actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
@@ -62,6 +62,9 @@ def stale_session_check!
raise ActionDispatch::Session::SessionRestoreError, "Session contains objects whose class definition isn't available.\nRemember to require the classes for all objects kept in the session.\n(Original exception: #{const_error.message} [#{const_error.class}])\n"
end
retry
+ elsif argument_error.message =~ %r{dump format error \(user class\)}
+ # Error unmarshalling object from session.
+ {}
else
raise
end
Please sign in to comment.
Something went wrong with that request. Please try again.