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

[doc] Clarify how the ConnectionHandler works #16361

Merged

Conversation

JackDanger
Copy link
Contributor

This makes the implicit description of how connection pooling works a
little more explicit. It converts the examples of a model hierarchy into
actual Ruby code and demonstrates how the key structure of the
database.yml relates to the establish_connection method.

#
# The various connection pools are managed by a single instance of
# ConnectionHandler accessible via ActiveRecord::Base.connection_handler.
# All ActiveRecord models use this handler to determine the connection pool that they
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Active Record not ActiveRecord we use the ActiveRecord form when we are talking about the constant what it is not case here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I thought that was a typo. I'll fix.

This makes the implicit description of how connection pooling works a
little more explicit. It converts the examples of a model hierarchy into
actual Ruby code and demonstrates how the key structure of the
database.yml relates to the `establish_connection` method.
rafaelfranca added a commit that referenced this pull request Jul 31, 2014
…umentation

[doc] Clarify how the ConnectionHandler works
@rafaelfranca rafaelfranca merged commit 0361a6a into rails:master Jul 31, 2014
@rafaelfranca
Copy link
Member

❤️ 💚 💙 💛 💜

@guivinicius
Copy link

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants