Skip to content

Instantly share code, notes, and snippets.

@fernandomantoan
Created February 24, 2014 18:55
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 fernandomantoan/9194522 to your computer and use it in GitHub Desktop.
Save fernandomantoan/9194522 to your computer and use it in GitHub Desktop.
CASino::LogoutListener.class_eval do
def user_logged_out(url, redirect_immediately = false)
if redirect_immediately
@controller.redirect_to url, status: :see_other
else
@controller.redirect_to login_path
end
@controller.cookies.delete :tgt
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment