debian-mirror-gitlab/app/controllers/sherlock/application_controller.rb
2018-12-05 23:21:45 +05:30

14 lines
330 B
Ruby

# frozen_string_literal: true
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