Created
May 25, 2015 09:24
-
-
Save ouranos/ab87ef9fc9267d05b9f5 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
# config/application.rb | |
config.middleware.insert_after ActionDispatch::Flash, Warden::Manager do |manager| | |
manager.default_strategies :authentication_token | |
manager.failure_app = UnauthorizedController | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment