gaffe icon indicating copy to clipboard operation
gaffe copied to clipboard

Database connections not cleared

Open rthbound opened this issue 9 years ago • 0 comments

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

rthbound avatar Mar 21 '16 16:03 rthbound