2015-11-04 13:13:19 -05:00
|
|
|
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
|
|
|
|
|
2017-06-06 18:45:16 -04:00
|
|
|
redirect_to :back, status: 302
|
2015-11-04 13:13:19 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|