summaryrefslogtreecommitdiff
path: root/app/controllers/sherlock/application_controller.rb
blob: 682ca5e382155f51ccc84432c29b9ecb13ea296a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Sherlock
  class ApplicationController < ::ApplicationController
    before_action :find_transaction

    def find_transaction
      if params[:transaction_id]
        @transaction = Gitlab::Sherlock.collection.
          find_transaction(params[:transaction_id])
      end
    end
  end
end