method

deprecation_for_pool_handling

rails latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionHandler
deprecation_for_pool_handling(method)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 287
        def deprecation_for_pool_handling(method)
          roles = []
          pool_managers.each do |pool_manager|
            roles << pool_manager.role_names
          end

          if roles.flatten.uniq.count > 1
            ActiveRecord.deprecator.warn(              `#{method}` currently only applies to connection pools in the current              role (`#{ActiveRecord::Base.current_role}`). In Rails 7.2, this method              will apply to all known pools, regardless of role. To affect only those              connections belonging to a specific role, pass the role name as an              argument. To switch to the new behavior, pass `:all` as the role name..squish)
          end
        end