Sha256: bda83c20c6eac2e9fd174b2e6008996ce8791d4f3b9dd49b5e7347b0827828be
Contents?: true
Size: 744 Bytes
Versions: 39
Compression:
Stored size: 744 Bytes
Contents
# encoding: utf-8 require 'one_apm/frameworks/rails' module OneApm class Probe module Frameworks class Rails3 < OneApm::Probe::Frameworks::Rails def env @env ||= ::Rails.env.to_s end def rails_root ::Rails.root.to_s end def vendor_root @vendor_root ||= File.join(root,'vendor','rails') end def version @rails_version ||= OneApm::VersionNumber.new(::Rails::VERSION::STRING) end protected def install_shim super ActiveSupport.on_load(:action_controller) do include OneApm::Agent::Instrumentation::TransactionBase::Shim end end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems