summaryrefslogtreecommitdiff
path: root/app/controllers/projects/ci_services_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/ci_services_controller.rb')
-rw-r--r--app/controllers/projects/ci_services_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/ci_services_controller.rb b/app/controllers/projects/ci_services_controller.rb
index 6d2756eba3d..406f313ae79 100644
--- a/app/controllers/projects/ci_services_controller.rb
+++ b/app/controllers/projects/ci_services_controller.rb
@@ -30,7 +30,7 @@ class Projects::CiServicesController < Projects::ApplicationController
message = { alert: 'We tried to test the service but error occurred' }
end
- redirect_to :back, message
+ redirect_back_or_default(options: message)
end
private