Skip to content

Commit

Permalink
Added docs for #disconnect! on adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
smartinez87 committed Apr 22, 2011
1 parent 0e2644c commit 02ee200
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Expand Up @@ -310,6 +310,8 @@ def reconnect!
connect connect
end end


# Disconnects from the database if already connected. Otherwise, this
# method does nothing.
def disconnect! def disconnect!
@connection.close rescue nil @connection.close rescue nil
end end
Expand Down
Expand Up @@ -276,7 +276,8 @@ def reset!
super super
end end


# Close the connection. # Disconnects from the database if already connected. Otherwise, this
# method does nothing.
def disconnect! def disconnect!
clear_cache! clear_cache!
@connection.close rescue nil @connection.close rescue nil
Expand Down
Expand Up @@ -90,6 +90,8 @@ def supports_add_column?
sqlite_version >= '3.1.6' sqlite_version >= '3.1.6'
end end


# Disconnects from the database if already connected. Otherwise, this
# method does nothing.
def disconnect! def disconnect!
super super
clear_cache! clear_cache!
Expand Down

0 comments on commit 02ee200

Please sign in to comment.