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

Database connections not cleared #30

Open
rthbound opened this issue Mar 21, 2016 · 0 comments
Open

Database connections not cleared #30

rthbound opened this issue Mar 21, 2016 · 0 comments

Comments

@rthbound
Copy link

While I don't think this is technically a bug, I wanted to document it as an issue and let users/maintainers decide what to do.

If a gaffe user uses a custom controller that requires a database connection, that database connection must be cleared manually. My suggested course of action is just to note this in the README and to add some sort of code example showing how to clear the connections. Something like:

append_after_filter :clear_connections
private
def clear_connections 
  ActiveRecord::Base.clear_active_connections! 
end
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

No branches or pull requests

1 participant