2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
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
|
|
|
|
|
2019-02-13 22:33:31 +05:30
|
|
|
redirect_back_or_default(options: { status: :found })
|
2015-11-26 14:37:03 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|