gitlab-org--gitlab-foss/app/controllers/sherlock/application_controller.rb

13 lines
299 B
Ruby
Raw Normal View History

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])
end
end
end
end