Can i update attributes in transaction.. I mean while saving a record i
do like this:-

object = Model.new(params[:model])
Model.transaction do
  object.save!
end

Can we also do it for updating a record.. i mean like this:-

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..

Thanks in advance
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to