summaryrefslogtreecommitdiff
path: root/app/controllers/sherlock
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-12-17 18:36:09 +0100
committerJasper Maes <jaspermaes.jm@gmail.com>2019-01-02 19:48:07 +0100
commitfbdb46358098bb32a33bfd8e6d6b286c415cfe04 (patch)
tree09ea952ba3bd3667936a0b328243c40d32a43545 /app/controllers/sherlock
parentbf38936fb34e18e18cb4ed81f4fb35ac9420bfd6 (diff)
downloadgitlab-ce-fbdb46358098bb32a33bfd8e6d6b286c415cfe04.tar.gz
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