# File lib/couchrest/model/properties.rb, line 74 def apply_all_property_defaults return if self.respond_to?(:new?) && (new? == false) # TODO: cache the default object # Never mark default options as dirty! dirty, self.disable_dirty = self.disable_dirty, true self.class.properties.each do |property| write_attribute(property, property.default_value) end self.disable_dirty = dirty end