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:
parent
9724e386c3
commit
8fa3951bea
1 changed files with 1 additions and 3 deletions
|
@ -27,9 +27,7 @@ class Devise::SessionsController < DeviseController
|
||||||
# We actually need to hardcode this as Rails default responder doesn't
|
# We actually need to hardcode this as Rails default responder doesn't
|
||||||
# support returning empty response on GET request
|
# support returning empty response on GET request
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.all do
|
format.all { head :no_content }
|
||||||
head :no_content
|
|
||||||
end
|
|
||||||
format.any(*navigational_formats) { redirect_to redirect_path }
|
format.any(*navigational_formats) { redirect_to redirect_path }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue