Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass self directly to connection_class #47673

Conversation

eileencodes
Copy link
Member

Returning self and db_config from resolve_config_for_connection is hold over from legacy behavior when we returned self.name or Base.name rather than just self. We can simplify this by passing self directlyto the handlersestablish_connection`.

Returning `self` and `db_config` from `resolve_config_for_connection` is
hold over from legacy behavior when we returned `self.name` or
`Base.name` rather than just `self`. We can simplify this by passing
`self` directly` to the handlers `establish_connection`.
@eileencodes eileencodes merged commit c5530fd into rails:main Mar 14, 2023
@eileencodes eileencodes deleted the pass-self-directly-for-establish-connection branch September 25, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant