diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-08 03:56:52 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-08 04:04:32 +0530 |
commit | d20955f889223b6035dbc7d61acba9091bf7b7ed (patch) | |
tree | 44b5df8f71316c33c4325f99ddf04e153e53d582 /activerecord/lib/active_record | |
parent | 529c2716992490a6eab55486788ca0d35c17e60b (diff) | |
download | rails-d20955f889223b6035dbc7d61acba9091bf7b7ed.tar.gz rails-d20955f889223b6035dbc7d61acba9091bf7b7ed.tar.bz2 rails-d20955f889223b6035dbc7d61acba9091bf7b7ed.zip |
Don't leave open dangling connections in development mode. [#1335 state:resolved]
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index c5183357a1..f8fa969dc3 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -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). |