method

lookup_connection_handler

Importance_0
v6.1.7.7 - 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 259
    def lookup_connection_handler(handler_key) # :nodoc:
      if ActiveRecord::Base.legacy_connection_handling
        handler_key ||= ActiveRecord::Base.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.