Skip to content

Instantly share code, notes, and snippets.

@mazikwyry
Created June 13, 2017 08:39
Show Gist options
  • Save mazikwyry/a3a2615fc3368111ef5de48248a2944d to your computer and use it in GitHub Desktop.
Save mazikwyry/a3a2615fc3368111ef5de48248a2944d to your computer and use it in GitHub Desktop.
class SessionsController < Devise::SessionsController
respond_to :json
private
def respond_with(resource, _opts = {})
render json: resource
end
def respond_to_on_destroy
head :no_content
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment