method

disconnect!

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: PoolConfig
disconnect!(automatic_reconnect: false) public

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/pool_config.rb, line 47
      def disconnect!(automatic_reconnect: false)
        ActiveSupport::ForkTracker.check!

        return unless @pool

        synchronize do
          return unless @pool

          @pool.automatic_reconnect = automatic_reconnect
          @pool.disconnect!
        end

        nil
      end
Register or log in to add new notes.