debian-mirror-gitlab/app/controllers/sherlock/application_controller.rb

15 lines
330 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-11-26 14:37:03 +05:30
module Sherlock
class ApplicationController < ::ApplicationController
before_action :find_transaction
def find_transaction
if params[:transaction_id]
2017-09-10 17:25:29 +05:30
@transaction = Gitlab::Sherlock.collection
.find_transaction(params[:transaction_id])
2015-11-26 14:37:03 +05:30
end
end
end
end