1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Update app/controllers/devise/sessions_controller.rb

This commit is contained in:
José Valim 2013-01-06 11:07:51 +01:00
parent 9724e386c3
commit 8fa3951bea

View file

@ -27,9 +27,7 @@ class Devise::SessionsController < DeviseController
# We actually need to hardcode this as Rails default responder doesn't
# support returning empty response on GET request
respond_to do |format|
format.all do
head :no_content
end
format.all { head :no_content }
format.any(*navigational_formats) { redirect_to redirect_path }
end
end