method

before_validation_on_create

Importance_2
v2.0.3 - Show latest stable - 1 note - Class: ActiveRecord::Callbacks
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).

Show source
Register or log in to add new notes.
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