Mount RailsPerformance manually in routes.rb
masterIf you need to control the mounting point or wrap the dashboard in custom authentication (e.g., using Devise), you can mount the engine directly in your config/routes.rb instead of using config.mount_at.
# config/routes.rb
Rails.application.routes.draw do
# Example: Restrict dashboard to admins using Devise
authenticate :user, -> (user) { user.admin? } do
mount RailsPerformance::Engine, at: 'rails/performance'
end
end# config/routes.rb
Rails.application.routes.draw do
...
# example for usage with Devise
authenticate :user, -> (user) { user.admin? } do
mount RailsPerformance::Engine, at: 'rails/performance'
end
end