def custom_fields_basic_attributes=(attributes)
      self.non_relationship_custom_fields.each do |rule|
        name, type = rule['name'], rule['type'].to_sym

        # method of the custom getter
        method_name = "#{type}_attribute_set"

        self.class.send(method_name, self, name, attributes)
      end
    end
def custom_fields_basic_attributes=(attributes)
      self.non_relationship_custom_fields.each do |rule|
        name, type = rule['name'], rule['type'].to_sym

        # method of the custom getter
        method_name = "#{type}_attribute_set"

        self.class.send(method_name, self, name, attributes)
      end
    end
Set the values (and their related fields) for all the non-relationship fields
 meaning string, text, date, boolean, select, file types.

 @param [ Hash ] The attributes for the custom fields and their related fields.