Closed kaspth closed 2 months ago
Fixes https://github.com/bullet-train-co/bullet_train/issues/1663
We shouldn't replace the whole Rails' app's RouteSet, particularly when the @routes instance variable already provides the hook.
@routes
Instead we can mirror what Rails does internally: https://github.com/rails/rails/blob/a59ddc714fa0403cbd8c7ae6abdec2f71ee7b63f/actionpack/test/controller/test_case_test.rb#L1224C1-L1236C8
Fixes https://github.com/bullet-train-co/bullet_train/issues/1663
We shouldn't replace the whole Rails' app's RouteSet, particularly when the
@routes
instance variable already provides the hook.Instead we can mirror what Rails does internally: https://github.com/rails/rails/blob/a59ddc714fa0403cbd8c7ae6abdec2f71ee7b63f/actionpack/test/controller/test_case_test.rb#L1224C1-L1236C8