Created
October 28, 2013 20:23
-
-
Save murdoch/7203932 to your computer and use it in GitHub Desktop.
Change signin path depending on url options
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
protected | |
def stored_location_for(resource) | |
nil | |
end | |
def after_sign_in_path_for(resource) | |
if condition_foo | |
redirect_to foo_url | |
elsif condition bar | |
redirect_to bar_url | |
else | |
redirect_to dashboard_url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment