12ee2753c1
Enables frozen string for some vestigial files as well as the following: * app/controllers/projects/**/*.rb * app/controllers/sherlock/**/*.rb * app/controllers/snippets/**/*.rb * app/controllers/users/**/*.rb Partially addresses #47424.
21 lines
456 B
Ruby
21 lines
456 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|