Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…te:resolved]
  • Loading branch information...
commit d20955f889223b6035dbc7d61acba9091bf7b7ed 1 parent 529c271
@lifo lifo authored
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).
Please sign in to comment.
Something went wrong with that request. Please try again.