Skip to content

Database connections not cleared #30

@rthbound

Description

@rthbound

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions