Sha256: 610975f57438ed2ad13b1a938057952262f52f226cb3077581a04adf1de25041
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
module ActiveRecordProfiler class Engine < ::Rails::Engine isolate_namespace ActiveRecordProfiler rake_tasks do load 'active-record-profiler/tasks.rake' end initializer "active_record_profiler.apply_default" do # Copy module settings to collector class [ :stats_flush_period, :profile_dir, :sql_ignore_pattern, :app_path_pattern, :trim_root_path, :trim_cache_id_pattern, :profile_self ].each do |config_item| ActiveRecordProfiler::Collector.send("#{config_item}=".to_sym, ActiveRecordProfiler.send(config_item)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active-record-profiler-2.0.0 | lib/active-record-profiler/engine.rb |