summaryrefslogtreecommitdiff
path: root/app/controllers/sherlock/transactions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sherlock/transactions_controller.rb')
-rw-r--r--app/controllers/sherlock/transactions_controller.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/controllers/sherlock/transactions_controller.rb b/app/controllers/sherlock/transactions_controller.rb
new file mode 100644
index 00000000000..ccc739da879
--- /dev/null
+++ b/app/controllers/sherlock/transactions_controller.rb
@@ -0,0 +1,19 @@
+module Sherlock
+ class TransactionsController < Sherlock::ApplicationController
+ def index
+ @transactions = Gitlab::Sherlock.collection.newest_first
+ end
+
+ def show
+ @transaction = Gitlab::Sherlock.collection.find_transaction(params[:id])
+
+ render_404 unless @transaction
+ end
+
+ def destroy_all
+ Gitlab::Sherlock.collection.clear
+
+ redirect_to(:back)
+ end
+ end
+end