Sha256: 8e9c22357abb43f8cf75cd7653bacde55a2d796bbb273268dc2784586329ab4f
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
require 'speed_gun' class SpeedGun::Railtie < ::Rails::Railtie initializer 'speed_gun' do |app| app.middleware.insert(0, SpeedGun::Middleware) SpeedGun.config.logger = Rails.logger SpeedGun.config.skip_paths.push( /^#{Regexp.escape(app.config.assets.prefix)}/ ) ActiveSupport.on_load(:action_controller) do require 'speed_gun/profiler/action_controller_profiler' end ActiveSupport.on_load(:action_view) do require 'speed_gun/profiler/action_view_profiler' end ActiveSupport.on_load(:active_record) do require 'speed_gun/profiler/active_record_profiler' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speed_gun-1.0.0.rc1 | lib/speed_gun/railtie.rb |