Created
April 15, 2016 17:35
-
-
Save hchood/138c061ce814fe4b5d1b4ae59f61a998 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.middleware.use Warden::Manager do |manager| | |
manager.failure_app = lambda { |e| [ 401, {'Content-Type' => 'application/json'}, ['Authorization Failed'] ] } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment