method

lookup_connection_handler

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ConnectionHandling
lookup_connection_handler(handler_key) 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_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
Register or log in to add new notes.