From 4f3d01bd93090231565baf7cd00ec38295c83dab Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 29 May 2020 10:43:16 +0200 Subject: [PATCH] Remove unused HTML response format --- app/controllers/admin/schedules_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/admin/schedules_controller.rb b/app/controllers/admin/schedules_controller.rb index 4debb5f91f..e1980e86c5 100644 --- a/app/controllers/admin/schedules_controller.rb +++ b/app/controllers/admin/schedules_controller.rb @@ -41,10 +41,7 @@ module Admin sync_subscriptions_create flash[:success] = flash_message_for(@object, :successfully_created) - respond_with(@object) do |format| - format.html { redirect_to location_after_save } - format.js { render layout: false } - end + respond_with(@object) else respond_with(@object) end