Skip to content
This repository
Browse code

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

…te:resolved]
  • Loading branch information...
commit d20955f889223b6035dbc7d61acba9091bf7b7ed 1 parent 529c271
Pratik authored November 08, 2008
3  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -125,9 +125,8 @@ def reset!
125 125
       end
126 126
 
127 127
       # Returns true if its safe to reload the connection between requests for development mode.
128  
-      # This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.
129 128
       def requires_reloading?
130  
-        false
  129
+        true
131 130
       end
132 131
 
133 132
       # Checks whether the connection to the database is still active (i.e. not stale).

0 notes on commit d20955f

Please sign in to comment.
Something went wrong with that request. Please try again.