I run into the same problem. My solution was tested with rails_admin (0.6.1)
and cancan (1.6.10)
.
mini-profiler
config contains field called skip_paths
. The solution is to set this field in the initializer.
- Edit (create if not exists)
config/initializers/mini_profiler.rb
. - Add path you want to ignore. For rails_admin,
/admin
should be ignored:Rack::MiniProfiler.config.skip_paths ||= [] Rack::MiniProfiler.config.skip_paths << '/admin'