method

preventing_writes?

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
preventing_writes?() public

Determines whether writes are currently being prevented.

Returns true if the connection is a replica.

If the application is using legacy handling, returns true if connection_handler.prevent_writes is set.

If the application is using the new connection handling will return true based on current_preventing_writes.

Show source
Register or log in to add new notes.