instance method
before_validation_on_create
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
before_validation_on_create()
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).
Source
# File activerecord/lib/active_record/callbacks.rb, line 296
def before_validation_on_create() end
Defined in activerecord/lib/active_record/callbacks.rb line 296
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Callbacks