Sha256: 3373dea7a0cd999212156e7d5926d50993b1b3894531eb3997d9a9b71a2dd379

Contents?: true

Size: 621 Bytes

Versions: 18

Compression:

Stored size: 621 Bytes

Contents

module BuilderApm
  class Engine < ::Rails::Engine
    isolate_namespace BuilderApm

    initializer 'builder_apm.start' do |app|
      BuilderApm::Controllers::Instrumenter.new.start if BuilderApm.configuration.enable_controller_profiler
      BuilderApm::Models::Instrumenter.start if BuilderApm.configuration.enable_active_record_profiler
      BuilderApm::Methods::Instrumenter.new.start if BuilderApm.configuration.enable_methods_profiler
    end

    config.after_initialize do
      Rails.application.routes.append do
        mount BuilderApm::Engine => '/builder_apm'
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
builder_apm-0.5.7 lib/builder_apm/engine.rb
builder_apm-0.5.6 lib/builder_apm/engine.rb
builder_apm-0.5.4 lib/builder_apm/engine.rb
builder_apm-0.5.3 lib/builder_apm/engine.rb
builder_apm-0.5.2 lib/builder_apm/engine.rb
builder_apm-0.5.1 lib/builder_apm/engine.rb
builder_apm-0.4.2 lib/builder_apm/engine.rb
builder_apm-0.4.1 lib/builder_apm/engine.rb
builder_apm-0.4.0 lib/builder_apm/engine.rb
builder_apm-0.3.2 lib/builder_apm/engine.rb
builder_apm-0.3.1 lib/builder_apm/engine.rb
builder_apm-0.3.0 lib/builder_apm/engine.rb
builder_apm-0.2.5 lib/builder_apm/engine.rb
builder_apm-0.2.4 lib/builder_apm/engine.rb
builder_apm-0.2.3 lib/builder_apm/engine.rb
builder_apm-0.2.2 lib/builder_apm/engine.rb
builder_apm-0.2.1 lib/builder_apm/engine.rb
builder_apm-0.2.0 lib/builder_apm/engine.rb