Ruby on Rails latest stable (v6.1.7.7) - 1 note - Class: ActiveRecord::Callbacks

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

before_validation_on_create() public

Is called before Validations.validate (which is part of the 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,


has been removed and replaced with:

before_validation :foo, :on => :create