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).
Register or
log in
to add new notes.
dvydra -
October 19, 2011 - (>= v3.0.0)
3 thanks
Replaced by :on => :create
From rails 3,
before_validation_on_create
has been removed and replaced with:
before_validation :foo, :on => :create