-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
27 lines (16 loc) · 840 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
== dectxn - Rails Declarative Transactions
dectxn is a Ruby on Rails plugin that provides declarative transaction management.
=== Installation
script/plugin install git://github.com/soulware/dectxn.git
The plugin will create <tt>config/initializers/dectxn_config.rb</tt>.
This is where your transactions can be configured.
dectxn uses the aquarium (http://aquarium.rubyforge.org) AOP framework.
sudo gem install aquarium
=== Example
The following line declares that calls to all "my_xxx" methods in Account will be wrapped with required (join existing or begin new) transaction semantics.
Txn::required :for_type => Account, :calls_to => /^my_/
=== Further Info
The following transactional options are currently supported -
* Txn::required
* Txn::requires_new
Copyright (c) 2008, Simon Horne, released under the MIT license.