Created
June 13, 2017 08:39
-
-
Save mazikwyry/a3a2615fc3368111ef5de48248a2944d 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
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