Skip to content

Instantly share code, notes, and snippets.

@hchood
Created April 15, 2016 17:35
Show Gist options
  • Save hchood/138c061ce814fe4b5d1b4ae59f61a998 to your computer and use it in GitHub Desktop.
Save hchood/138c061ce814fe4b5d1b4ae59f61a998 to your computer and use it in GitHub Desktop.
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