Skip to content

Instantly share code, notes, and snippets.

@josevalim
Created August 2, 2013 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josevalim/6143611 to your computer and use it in GitHub Desktop.
Save josevalim/6143611 to your computer and use it in GitHub Desktop.
Warden::Manager.after_authentication do |record, warden, options|
warden.request.session.try(:delete, :_csrf_token)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment