Browse files

Don't leave open dangling connections in development mode. [#1335 sta…

  • Loading branch information...
1 parent 529c271 commit d20955f889223b6035dbc7d61acba9091bf7b7ed @lifo lifo committed Nov 7, 2008
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -125,9 +125,8 @@ def reset!
# Returns true if its safe to reload the connection between requests for development mode.
- # This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.
def requires_reloading?
- false
+ true
# Checks whether the connection to the database is still active (i.e. not stale).

0 comments on commit d20955f

Please sign in to comment.