1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't leave open dangling connections in development mode. [#1335 state:resolved]

This commit is contained in:
Pratik Naik 2008-11-08 03:56:52 +05:30
parent 529c271699
commit d20955f889

View file

@ -125,9 +125,8 @@ module ActiveRecord
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).