Created
September 5, 2012 10:25
-
-
Save gma/3634662 to your computer and use it in GitHub Desktop.
This file contains 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
def redirect_to_app_when_logged_in | |
if request.path == '/' && request.referer.blank? && current_user | |
redirect_to iteration_path('current') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment