public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Don't leave open dangling connections in development mode. [#1335 
state:resolved]
lifo (author)
Fri Nov 07 14:26:52 -0800 2008
commit  d20955f889223b6035dbc7d61acba9091bf7b7ed
tree    44b5df8f71316c33c4325f99ddf04e153e53d582
parent  529c2716992490a6eab55486788ca0d35c17e60b
...
125
126
127
128
129
130
 
131
132
133
...
125
126
127
 
128
 
129
130
131
132
0
@@ -125,9 +125,8 @@ module ActiveRecord
0
       end
0
 
0
       # Returns true if its safe to reload the connection between requests for development mode.
0
-      # This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.
0
       def requires_reloading?
0
-        false
0
+        true
0
       end
0
 
0
       # Checks whether the connection to the database is still active (i.e. not stale).

Comments