You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A proposed fix could be to not set the default for @@mount_at or to interpret config.mount_at = false or config.mount_at = nil as a switch to disable auto mounting.
Of course it would also be needed to fix all calls to rails_performance_path.
I could do a pull request to implement either of these solutions if it suits your needs, or let me know if I missed anything 😄
Have a great day
The text was updated successfully, but these errors were encountered:
How to reproduce :
mount RailsPerformance::Engine
in routes.rb to a specific route (let's say/dashboard/performance
)config.mount_at
line in initializer/rails/performance
and/dashboard/performance
Looks like to culprit is
rails_performance/lib/rails_performance.rb
Line 61 in 624f829
as it always sets a default that is then used by
rails_performance/config/routes.rb
Line 21 in 624f829
A proposed fix could be to not set the default for
@@mount_at
or to interpretconfig.mount_at = false
orconfig.mount_at = nil
as a switch to disable auto mounting.Of course it would also be needed to fix all calls to
rails_performance_path
.I could do a pull request to implement either of these solutions if it suits your needs, or let me know if I missed anything 😄
Have a great day
The text was updated successfully, but these errors were encountered: