Sha256: bce95116cd2fd60cd1025c46f852782bc589352c2e5305eb7d4425d24b84ddb9
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
require 'headhunter' require 'headhunter/rack/capturing_middleware' if ENV['HEADHUNTER'] == 'true' class Headhunter module Rails class Railtie < ::Rails::Railtie initializer "headhunter.hijack" do |app| head_hunter = Headhunter.new(::Rails.root) at_exit do head_hunter.report head_hunter.clean_up! end app.middleware.insert(0, Headhunter::Rack::CapturingMiddleware, head_hunter) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headhunter-0.0.2 | lib/headhunter/rails.rb |