method

preventing_writes?

rails latest stable - Class: ActiveRecord::Core

Method not available on this version

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

preventing_writes?(class_name)
public

Intended to behave like `.current_preventing_writes` given the class name as input. See PoolConfig and ConnectionHandler::ConnectionDescriptor.