debian-mirror-gitlab/app/controllers/sherlock/transactions_controller.rb

20 lines
422 B
Ruby
Raw Normal View History

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
2017-09-10 17:25:29 +05:30
redirect_to :back, status: 302
2015-11-26 14:37:03 +05:30
end
end
end