diff --git a/app/controllers/devise/sessions_controller.rb b/app/controllers/devise/sessions_controller.rb index 203fbd3a..5cd22999 100644 --- a/app/controllers/devise/sessions_controller.rb +++ b/app/controllers/devise/sessions_controller.rb @@ -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