method

preventing_writes?

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
preventing_writes?()
public

Determines whether writes are currently being prevented.

Returns true if the connection is a replica or returns the value of current_preventing_writes.