def generate(name = default_fauxture_name, attributes = {})
      name, attributes = default_fauxture_name, name if name.is_a? Hash
      Sweatshop.create(self, name, attributes)
    end
def generate(name = default_fauxture_name, attributes = {})
      name, attributes = default_fauxture_name, name if name.is_a? Hash
      Sweatshop.create(self, name, attributes)
    end
Creates an instance from hash of attributes, saves it
 and adds it to the record map. Attributes given as the
 second argument are merged into attributes from fixture.

 If record is valid because of duplicated property value,
 this method does a retry.

 @param     name        [Symbol]
 @param     attributes  [Hash]

 @api       public

 @return   [DataMapper::Resource]    added instance