Skip to content

Commit

Permalink
Added disconnect! to Firebird adapter (closes #5210) [kennethkunz@gma…
Browse files Browse the repository at this point in the history
…il.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4421 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jun 3, 2006
1 parent 6a9f47f commit 2fbcae1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ def active?
not @connection.closed?
end

def disconnect!
@connection.close rescue nil
end

def reconnect!
@connection.close
disconnect!
@connection = @connection.database.connect(*@connection_params)
end

Expand Down

0 comments on commit 2fbcae1

Please sign in to comment.