datamapper/dm-transactions — Issue #3: Transaction on repository
Author: mitfik
Created: 2012-02-20 15:10:13+00:00
State: open

hi, any one know why this does not work:

DataMapper.repository(:some_repository).transaction do |t|
# do staff
end

instead of that I need to use always:

MyModel.transaction do
# do staff
end

I can't find any information about that, I will be grateful for any information about that.
Thanks a lot