Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Transaction on repository #3

Open
mitfik opened this issue Feb 20, 2012 · 0 comments
Open

Transaction on repository #3

mitfik opened this issue Feb 20, 2012 · 0 comments

Comments

@mitfik
Copy link

mitfik commented Feb 20, 2012

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant