Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-12-17 20:36:09 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2019-01-02 21:48:07 +0300
commitfbdb46358098bb32a33bfd8e6d6b286c415cfe04 (patch)
tree09ea952ba3bd3667936a0b328243c40d32a43545 /app/controllers/sherlock
parentbf38936fb34e18e18cb4ed81f4fb35ac9420bfd6 (diff)
Fix deprecation: redirect_to :back is deprecated
Diffstat (limited to 'app/controllers/sherlock')
-rw-r--r--app/controllers/sherlock/transactions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sherlock/transactions_controller.rb b/app/controllers/sherlock/transactions_controller.rb
index 46e382e594e..8d1847507cc 100644
--- a/app/controllers/sherlock/transactions_controller.rb
+++ b/app/controllers/sherlock/transactions_controller.rb
@@ -15,7 +15,7 @@ module Sherlock
def destroy_all
Gitlab::Sherlock.collection.clear
- redirect_to :back, status: :found
+ redirect_back_or_default(options: { status: :found })
end
end
end