gecos-team/kitchen — pull request #1 by nackd (2011-12-20 11:28:55+00:00)
Title: Chef base improvements

This is to be able to create new records easily.

The @new_record instance variable keeps track of whether the object is a new record or already saved (as you need to issue a POST to create a new object and a PUT to update an existing one).

To create an object for an existing record you need to use Class::instantiate instead of Class::new, so @new_record is set appropriately.