method

resolve_config_for_connection

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ConnectionHandling
resolve_config_for_connection(config_or_env) private

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 347
      def resolve_config_for_connection(config_or_env)
        raise "Anonymous class is not allowed." unless name

        owner_name = primary_class? ? Base.name : name
        self.connection_specification_name = owner_name

        db_config = Base.configurations.resolve(config_or_env)
        [db_config, self]
      end
Register or log in to add new notes.