Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect signed in user to url_for_signed_in_users
This adds a `before_filter` for `sessions#new` that will redirect signed in users to the same url that is configured for `url_after_create`, which, by default, points to `Clearance.configuration.redirect_url`.
- Loading branch information
Showing
3 changed files
with
80 additions
and
54 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
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
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