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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue