Skip to content

Commit

Permalink
Added guard clause to commit method.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvernagus committed May 1, 2009
1 parent cd1a049 commit 7681a38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mssql_adapter.rb
Expand Up @@ -243,6 +243,7 @@ def begin_db_transaction

# Commits a transaction.
def commit_db_transaction
return unless @transaction
@transaction.commit
@transaction = nil
end
Expand Down

0 comments on commit 7681a38

Please sign in to comment.