-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ismail Akbudak
committed
Aug 19, 2015
1 parent
7c55b0e
commit 952a035
Showing
2 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
class Hq::SessionsController < Devise::SessionsController | ||
layout 'login' | ||
|
||
private | ||
|
||
# Overwriting the sign_out redirect path method | ||
def after_sign_in_path_for(resource_or_scope) | ||
hq_root_path | ||
end | ||
|
||
# Overwriting the sign_out redirect path method | ||
def after_sign_out_path_for(resource_or_scope) | ||
new_admin_session_path | ||
end | ||
|
||
end |
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
952a035
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍