autosave options in ruby on rails

Posted by fregas on Stack Overflow See other posts from Stack Overflow or by fregas
Published on 2010-06-17T00:26:34Z Indexed on 2010/06/17 0:32 UTC
Read the original article Hit count: 418

Filed under:
|

is there a way to turn OFF autosave in rails? I dont' want modifications to an association to automatically save to the database UNTIL i call save on the parent object.

some_parent.some_children << child #should not save, just adds to the association!

some_parent.save #now parent and children are saved!

It this possible or am i barking up the wrong tree?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about activerecord