gitlab-org--gitlab-foss/app/controllers/sherlock/transactions_controller.rb

20 lines
425 B
Ruby
Raw Normal View History

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
2018-07-02 06:43:06 -04:00
redirect_to :back, status: :found
end
end
end