square / rails-auth

Modular resource-based authentication and authorization for Rails/Rack
Apache License 2.0
291 stars 23 forks source link

Render JSON error responses from Rails::Auth::ErrorPage #30

Closed tarcieri closed 8 years ago

tarcieri commented 8 years ago

This detects if a request is for JSON, and if so, renders a JSON response instead of an HTML one.

tarcieri commented 8 years ago

cc @lukaszx0 @ewr @nerdrew @zanker