BigW Consortium Gitlab

application_controller.rb 299 Bytes
Newer Older
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