object = Model.find(:id)
Model.transaction do
object.update_attributes!
end
Obviously this chunk of code is not working, thats why i asked you
people..
Other than the fact that you're passing an invalid argument to find
and that update_attributes probably requires you to pass an argument
this should be fine (although obviously pointless unless you make
several changes within the transaction.