search for: update_without_saving

Displaying 1 result from an estimated 1 matches for "update_without_saving".

2005 Dec 19
2
update_attrbutes without saving?
Hello all, Is there a method for updating all the attributes from a hash without saving to the database? (the counterpart of update_attributes but without saving). What I want to do is: person = Person.find(params[:id]) person.update_without_saving(params[:person]) #update the in-memory object. # Process person object ....... person.save I know that when you are creating a new object, you can use Person.new (updates in memory object) or Person.create (updates and saves to the database), but don''t know if the second option (apart fro...