Sha256: e27eff7156c6c047258e575451cb225e1dcff2e0324f3d325b65a28b1c05cccc

Contents?: true

Size: 344 Bytes

Versions: 42

Compression:

Stored size: 344 Bytes

Contents

if Rails::VERSION::MAJOR.to_i >= 3
  module OneApm
    class Railtie < Rails::Railtie

      initializer "oneapm_rpm.start_plugin" do |app|
        OneApm::Probe.init :config => app.config
      end

    end
  end
else
  config = nil
  config = Rails.configuration if Rails.respond_to?(:configuration)
  OneApm::Probe.init :config => config
end

Version data entries

42 entries across 42 versions & 1 rubygems

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