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

Version Path
oneapm_rpm-1.4.2 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.4.1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.4.0 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.7 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.6 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.5 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.4 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.3 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.2 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.0 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/frameworks/rails3.rb
oneapm_rpm-1.2.9 lib/one_apm/frameworks/rails3.rb