Skip to content
Browse files

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

…te:resolved]
  • Loading branch information...
1 parent 529c271 commit d20955f889223b6035dbc7d61acba9091bf7b7ed @lifo lifo committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
View
3 activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -125,9 +125,8 @@ def reset!
end
# 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
end
# Checks whether the connection to the database is still active (i.e. not stale).

0 comments on commit d20955f

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