summaryrefslogtreecommitdiff
path: root/app/controllers/sherlock/transactions_controller.rb
blob: ae4953c3259a6231dfae83459f6aa5486c379d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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, status: :found
    end
  end
end