method

with_new_connections_blocked

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::ConnectionPool
with_new_connections_blocked() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 677
      def with_new_connections_blocked
        previous_value = nil
        synchronize do
          previous_value, @new_cons_enabled = @new_cons_enabled, false
        end
        yield
      ensure
        synchronize { @new_cons_enabled = previous_value }
      end
Register or log in to add new notes.