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

use ConnectionManagement middleware to close database connect #213

Merged
merged 1 commit into from
Jun 11, 2014

Conversation

tsechingho
Copy link
Contributor

The development log will show warning like

DEPRECATION WARNING: Database connections will not be closed automatically, please close your database connection at the end of the thread by calling close on your connection. For example: ActiveRecord::Base.connection.close'

It can be resolved by adding a middleware ActiveRecord::ConnectionAdapters::ConnectionManagement.

The relative discussion is http://stackoverflow.com/questions/10191531/activerecord-connection-warning-database-connections-will-not-be-closed-automa

mitfik added a commit that referenced this pull request Jun 11, 2014
use ConnectionManagement middleware to close database connect
@mitfik mitfik merged commit 2cabb59 into rubycas:master Jun 11, 2014
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.

2 participants