method

lookup_connection_handler

rails latest stable - Class: ActiveRecord::ConnectionHandling

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

lookup_connection_handler(handler_key)
public

No documentation available.

# File activerecord/lib/active_record/connection_handling.rb, line 256
    def lookup_connection_handler(handler_key) # :nodoc:
      if ActiveRecord.legacy_connection_handling
        handler_key ||= ActiveRecord.writing_role
        connection_handlers[handler_key] ||= ActiveRecord::ConnectionAdapters::ConnectionHandler.new
      else
        ActiveRecord::Base.connection_handler
      end
    end