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