# Db transactions problem after transaction-simple gem is installed

**URL:** <https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081>\
**Category:** Rails\
**Created:** [October 2, 2007, 6:12am UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081 "2007-10-02T06:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [October 2, 2007, 6:12am UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081/1 "2007-10-02T06:12:12Z")

</div>

HI All,

I have run into a problem.

I have a rails 1.1.6 setup.  
I also have the following gems installed

```
    pdf-writer-1.1.3.gem
    color-tools-1.3.0.gem
    transaction-simple-1.4.0.gem

```

Upon running the tests “rake test:functionals” all my testcases with  
DB transactions failed.  
Upon investigations it was found that transaction-simple was at work.  
Is there anyway to circumvent this?

This behaviour repeated when we tested the application manually also.

Any help in this direction will be appreciated most.

Cheers,  
Ajay

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [October 2, 2007, 11:27am UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081/2 "2007-10-02T11:27:52Z")

</div>

Ajay wrote:

> HI All,
> 
> I have run into a problem.
> 
> I have a rails 1.1.6 setup.  
> I also have the following gems installed
> 
> ```
> pdf-writer-1.1.3.gem
> color-tools-1.3.0.gem
> transaction-simple-1.4.0.gem
> 
> ```
> 
> Upon running the tests “rake test:functionals” all my testcases with  
> DB transactions failed.  
> Upon investigations it was found that transaction-simple was at work.  
> Is there anyway to circumvent this?
> 
> This behaviour repeated when we tested the application manually also.
> 
> Any help in this direction will be appreciated most.

Don’t have the transaction-simple gem installed? If it ain’t broken,  
don’t fix it.

Rails 1.1.6 doesn’t require it, and it might be that newer versions of  
the gem aren’t compatible with that older Rails version.

–  
Roderick van Domburg  
[http://www.nedforce.com](http://www.nedforce.com)

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [October 7, 2007, 8:54am UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081/3 "2007-10-07T08:54:38Z")

</div>

> Don’t have the transaction-simple gem installed? If it ain’t broken,  
> don’t fix it.

I cant have the gem uninstalled, since PDFWriter requires it.  
I figured out that transaction-simple has a deprecated method named  
transaction.  
There seemed to be a namespacing issue.  
This method is expected to be removed in transaction-simple’s version  
2.0.  
I have rebuilt the gem with the deprecated method renamed.  
Anyways, thanks for the support!

Cheers,  
Ajay

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [October 25, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/db-transactions-problem-after-transaction-simple-gem-is-installed/116081/4 "2007-10-25T21:04:15Z")

</div>

Rails 1.2.5!  
Although Transaction::Simple (1.3) is loaded into ActiveRecord/vendor,  
transactions are tagged as deprecatedh  
This ignores my gem (1.4)  
Why load an older version, if it is not to be used?

On Oct 2, 2:27 am, Roderick van Domburg \<rails-mailing-l…@andreas-
