2018-09-25 23:45:43 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-11-04 13:13:19 -05:00
|
|
|
module Sherlock
|
|
|
|
class ApplicationController < ::ApplicationController
|
|
|
|
before_action :find_transaction
|
|
|
|
|
|
|
|
def find_transaction
|
|
|
|
if params[:transaction_id]
|
2017-06-21 09:48:12 -04:00
|
|
|
@transaction = Gitlab::Sherlock.collection
|
|
|
|
.find_transaction(params[:transaction_id])
|
2015-11-04 13:13:19 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|