mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added docs for #disconnect! on adapters
This commit is contained in:
@@ -310,6 +310,8 @@ module ActiveRecord
|
||||
connect
|
||||
end
|
||||
|
||||
# Disconnects from the database if already connected. Otherwise, this
|
||||
# method does nothing.
|
||||
def disconnect!
|
||||
@connection.close rescue nil
|
||||
end
|
||||
|
||||
@@ -276,7 +276,8 @@ module ActiveRecord
|
||||
super
|
||||
end
|
||||
|
||||
# Close the connection.
|
||||
# Disconnects from the database if already connected. Otherwise, this
|
||||
# method does nothing.
|
||||
def disconnect!
|
||||
clear_cache!
|
||||
@connection.close rescue nil
|
||||
|
||||
@@ -90,6 +90,8 @@ module ActiveRecord
|
||||
sqlite_version >= '3.1.6'
|
||||
end
|
||||
|
||||
# Disconnects from the database if already connected. Otherwise, this
|
||||
# method does nothing.
|
||||
def disconnect!
|
||||
super
|
||||
clear_cache!
|
||||
|
||||
Reference in New Issue
Block a user