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.1.1 lib/initializers/rails.rb
oneapm_rpm-1.1.0 lib/initializers/rails.rb