Sha256: 4b637909dae410736fc74518b2d55b518fbc3ca1b51700401cb33aa43dea5790

Contents?: true

Size: 799 Bytes

Versions: 8

Compression:

Stored size: 799 Bytes

Contents

require_relative './rails/middleware.rb'
require_relative './models/collection.rb'
require_relative './instrument/metrics_collector.rb'

module RailsPerformance
  class Engine < ::Rails::Engine

    #config.app_middleware.use RailsPerformance::Middleware
    config.app_middleware.insert_after ActionDispatch::Executor, RailsPerformance::Rails::Middleware

    initializer :configure_metrics, after: :initialize_logger do
      ActiveSupport::Notifications.subscribe(
        "process_action.action_controller",
        RailsPerformance::Instrument::MetricsCollector.new
      )
    end

    # initializer 'rails_performance.helpers' do
    #   ActiveSupport.on_load :action_view do
    #     ActionView::Base.send :include, RailsPerformance::RailsPerformanceHelper
    #   end
    # end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_performance-0.0.1.15 lib/rails_performance/engine.rb
rails_performance-0.0.1.14 lib/rails_performance/engine.rb
rails_performance-0.0.1.13 lib/rails_performance/engine.rb
rails_performance-0.0.1.12 lib/rails_performance/engine.rb
rails_performance-0.0.1.11 lib/rails_performance/engine.rb
rails_performance-0.0.1.10 lib/rails_performance/engine.rb
rails_performance-0.0.1.9 lib/rails_performance/engine.rb
rails_performance-0.0.1.8 lib/rails_performance/engine.rb