method

original_new_controller_thread

rails latest stable - Class: ActionController::Live

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

original_new_controller_thread()
public

Disable controller / rendering threads in tests. User tests can access the database on the main thread, so they could open a txn, then the controller thread will open a new connection and try to access data that’s only visible to the main thread’s txn. This is the problem in #23483.