Created
June 16, 2014 05:07
-
-
Save luckyruby/d5ebc2d9ef22081cd629 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
def after_sign_in_path_for(resource) | |
if resource.is_a? Admin | |
admin_path | |
elsif resource.is_a? Manager | |
manager_path | |
else | |
root_path | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment