Created
February 24, 2014 18:55
-
-
Save fernandomantoan/9194522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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