method

before_validation_on_create

before_validation_on_create()
public

Is called before Validations.validate (which is part of the Base.save call) on new objects that haven’t been saved yet (no record exists).