Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # what happens here?
- def method1( user_id )
- u = User.find user_id
- # do something
- ActiveRecord::Base.transaction do
- u.save
- end
- method2( user_id )
- end
- def method2( user_id )
- u = User.find user_id
- # do something
- u.save
- end
Add Comment
Please, Sign In to add comment