Thursday, May 8, 2008

simple_services

There's another Rails plugin out there doing something pretty similar to dectxn, with a greater emphasis on "convention over configuration" - simple_services. simple_services provides a base class Service::Base and all methods in all subclasses will be automatically wrapped in a transaction (with an effective propagation attribute of required).

How would something like this be done in dectxn?

Txn::required :for_type => Service::Base, :calls_to => :all_methods

No comments: